:root {
  --blue: #a16207;
  --blue-dark: #784204;
  --blue-soft: #fff7d6;
  --ink: #121a33;
  --text: #303b55;
  --muted: #74809a;
  --line: #dfe4ef;
  --line-strong: #cfd6e5;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --green: #20a866;
  --green-soft: #e6f7ed;
  --orange: #e38b17;
  --orange-soft: #fff2dd;
  --purple: #7554d6;
  --purple-soft: #f1ebff;
  --red: #d94d68;
  --red-soft: #ffebef;
  --cyan: #2785df;
  --cyan-soft: #e8f3ff;
  --shadow: 0 2px 7px rgba(26, 39, 74, .04), 0 12px 32px rgba(26, 39, 74, .05);
  --radius: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--canvas);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: "Figtree", sans-serif; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 78px;
  display: grid;
  grid-template-columns: 260px minmax(320px, 580px) 1fr;
  align-items: center;
  gap: 34px;
  padding: 0 4vw;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font: 700 20px "Figtree", sans-serif;
}
.app-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #a16207, #784204);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(161, 98, 7, .24);
}
.app-logo svg { width: 24px; height: 24px; }
.global-search {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s;
}
.global-search:focus-within { border-color: #e1b858; box-shadow: 0 0 0 3px var(--blue-soft); }
.global-search svg { width: 18px; color: var(--muted); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; }
.global-search input::placeholder { color: #98a2b7; }
.global-search kbd {
  padding: 3px 7px;
  color: #7f899f;
  background: #f4f6fa;
  border: 1px solid #e8ebf2;
  border-radius: 5px;
  font: 600 10px "DM Sans", sans-serif;
}
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.primary-button, .secondary-button, .danger-button {
  min-height: 40px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #a16207, #784204);
  border: 1px solid var(--blue-dark);
  box-shadow: 0 7px 16px rgba(161, 98, 7, .2);
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(161, 98, 7, .28); }
.secondary-button { color: #43506b; background: #fff; border: 1px solid var(--line-strong); }
.secondary-button:hover { color: var(--blue); background: #fffdf5; border-color: #d8b66b; }
.danger-button { color: #fff; background: #cf3f58; border: 1px solid #bd344c; }
.danger-button:hover { background: #bd344c; }
.notification { width: 36px; height: 36px; display: grid; place-items: center; color: #64718d; }
.notification svg { width: 19px; }
.user-menu { position: relative; display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #d19270, #9d5b45);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 700;
}
.user-name { color: #556079; font-size: 12px; }
.user-menu form { margin: 0; }
.user-menu button { padding: 5px; color: #7e899e; background: none; border: 0; font-size: 11px; cursor: pointer; }
.user-menu button:hover { color: var(--red); }

.app-nav {
  position: sticky;
  top: 78px;
  z-index: 25;
  height: 72px;
  padding: 10px 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(247, 250, 249, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.app-nav a {
  min-width: 180px;
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #56647a;
  background: #fff;
  border: 1px solid #dde5e4;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.app-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #ead79e;
  transform: translateY(-1px);
}
.app-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #a16207, var(--blue-dark));
  border-color: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(161, 98, 7, .2);
}
.app-nav a.active:hover { transform: none; }
.nav-icon { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; }
.nav-icon svg { width: 100%; height: 100%; }
.nav-label { white-space: nowrap; }

.app-main { min-height: calc(100vh - 150px); padding: 18px 2.8vw 54px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-title h2 { margin: 0; font-size: 14px; }
.panel-title > a { color: var(--blue); font-size: 11px; font-weight: 600; }
.period-chip {
  padding: 6px 9px;
  color: #5e6a83;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
}
.period-filter { margin: 0; }
.period-filter select {
  height: 34px;
  padding: 0 28px 0 10px;
  color: #5e6a83;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.period-filter select:focus { border-color: #e1b858; box-shadow: 0 0 0 3px var(--blue-soft); }
.messages { position: fixed; top: 148px; right: 24px; z-index: 60; }
.message {
  min-width: 280px;
  padding: 13px 16px;
  color: #16683e;
  background: #edfaf3;
  border: 1px solid #bce8d0;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

/* Tableau de bord */
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.dashboard-layout > .horizontal-filters { margin-bottom: 0; }
.dashboard-sidebar { display: grid; gap: 14px; }
.summary-panel, .quick-filters { padding: 17px; }
.summary-panel { width: 100%; padding: 17px; }
.summary-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.summary-heading h2 { margin: 0 0 3px; font-size: 19px; }
.summary-heading p { margin: 0; color: #65728a; font-size: 12px; }
.summary-period-filter {
  min-width: 152px;
  height: 38px;
  padding: 0 9px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.summary-period-filter svg { width: 18px; color: #53627a; flex: 0 0 auto; }
.summary-period-filter select {
  min-width: 0;
  height: 100%;
  flex: 1;
  color: #3d4a62;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.summary-period-filter:focus-within {
  border-color: #e1b858;
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.summary-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.summary-card {
  min-width: 0;
  min-height: 124px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 12px;
}
.summary-metric {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.summary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.summary-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.summary-total .summary-icon { color: #3478ee; background: #e8f0ff; }
.summary-new .summary-icon { color: #1eb563; background: #e7f8ee; }
.summary-metric small { display: block; color: #536079; font-size: 13px; font-weight: 600; }
.summary-metric strong { display: block; margin-top: 3px; color: #0f1b34; font-size: 30px; line-height: .95; }
.summary-card footer {
  margin-top: 10px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #65728a;
  border-top: 1px solid #e7ebf1;
  font-size: 11px;
}
.trend-badge {
  min-width: 70px;
  min-height: 25px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}
.trend-up { color: #159b52; background: #e9f8ef; }
.summary-total .trend-up { color: #3478ee; background: #edf3ff; }
.trend-down { color: #c54558; background: #ffedf0; }
.trend-flat { color: #69758b; background: #f0f2f6; }
.quick-filters .panel-title { margin-bottom: 15px; }
.quick-filters form { display: grid; gap: 12px; }
.horizontal-filters {
  margin-bottom: 14px;
  padding: 12px 16px 14px;
}
.horizontal-filters .panel-title { margin-bottom: 10px; }
.horizontal-filters form {
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 9px;
}
.horizontal-filters label { min-width: 0; }
.horizontal-filters .filter-submit {
  width: auto;
  min-width: 112px;
  min-height: 44px;
}
.shared-filter-bar input[type="hidden"] { display: none; }
.catalog-page .shared-filter-bar { margin-bottom: 0; }
.quick-filters label, .field label, .login-box label {
  display: grid;
  gap: 6px;
  color: #4f5b74;
  font-size: 10px;
  font-weight: 700;
}
.quick-filters input, .quick-filters select, .field input, .field select, .field textarea, .login-box input {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  font-size: 11px;
  transition: border-color .18s, box-shadow .18s;
}
.quick-filters input:focus, .quick-filters select:focus, .field input:focus, .field select:focus, .field textarea:focus, .login-box input:focus {
  border-color: #e1b858;
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.filter-submit { width: 100%; margin-top: 2px; font-size: 11px; }
.dashboard-content { min-width: 0; display: grid; gap: 14px; }
.pipeline-panel { overflow: hidden; }
.pipeline-toolbar {
  min-height: 55px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.pipeline-toolbar h1 { margin: 0; font-size: 16px; }
.pipeline-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.view-tools { display: flex; align-items: center; gap: 8px; color: #7e899e; font-size: 10px; }
.view-tools strong { margin-right: 8px; color: #536079; font-size: 10px; }
.view-toggle {
  width: 34px;
  height: 30px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(235px, 1fr);
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c8d0e1 transparent;
}
.kanban-column {
  min-height: 405px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f9fafc;
  border: 1px solid #e4e8f1;
  border-radius: 9px;
  scroll-snap-align: start;
}
.kanban-column > header {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kanban-column > header h2 { margin: 0; color: var(--blue); font-size: 12px; }
.kanban-column > header span {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}
.column-a_analyser > header h2, .column-a_analyser > header span { color: #b56b08; }
.column-a_analyser > header span { background: var(--orange-soft); }
.column-interessante > header h2, .column-interessante > header span { color: #168b50; }
.column-interessante > header span { background: var(--green-soft); }
.column-candidature_envoyee > header h2, .column-candidature_envoyee > header span { color: #6843c5; }
.column-candidature_envoyee > header span { background: var(--purple-soft); }
.kanban-cards { min-height: 300px; padding: 0 8px; display: grid; align-content: start; gap: 7px; }
.offer-card {
  padding: 11px;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(33, 47, 83, .04);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.offer-card:hover { transform: translateY(-2px); border-color: #c8d0e6; box-shadow: 0 8px 18px rgba(33, 47, 83, .09); }
.offer-card-head { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 6px; align-items: start; }
.offer-card-head > a:first-child {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-menu { color: #71809d; text-align: center; font-weight: 700; }
.offer-company { margin: 3px 0 6px; color: #6f7a92; font-size: 10px; }
.offer-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7c879d; font-size: 9px; }
.offer-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-card footer { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-card footer small { color: #8892a7; font-size: 8px; white-space: nowrap; }
.offer-type, .status-pill, .neutral-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 8px;
  font-weight: 700;
}
.type-cdi { color: #2872d0; background: #e6f1ff; }
.type-cdd { color: #168b50; background: #e3f7ec; }
.type-freelance { color: #d37b0c; background: #fff0d9; }
.column-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #a0a9ba;
  border: 1px dashed #d9deea;
  border-radius: 7px;
  font-size: 10px;
}
.add-card {
  min-height: 38px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #68758e;
  border-top: 1px solid #e4e8f1;
  font-size: 10px;
  font-weight: 600;
}
.add-card:hover { color: var(--blue); background: var(--blue-soft); }
.dashboard-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.dashboard-bottom > article { min-width: 0; padding: 14px; display: flex; flex-direction: column; }
.dashboard-bottom .panel-title { margin-bottom: 10px; }
.activity-list { display: grid; }
.activity-list > a {
  min-height: 37px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf0f5;
}
.activity-list > a:last-child { border-bottom: 0; }
.activity-dot { width: 22px; height: 22px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 9px; }
.activity-interessante { color: var(--green); background: var(--green-soft); }
.activity-list strong, .activity-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-list strong { color: #39445c; font-size: 9px; }
.activity-list small, .activity-list time { color: #8791a6; font-size: 8px; }
.source-bars { display: grid; gap: 10px; padding: 3px 0 5px; }
.source-bars > div { display: grid; grid-template-columns: 75px 1fr 22px; align-items: center; gap: 7px; font-size: 9px; }
.source-bars i { height: 5px; overflow: hidden; background: #edf0f5; border-radius: 4px; }
.source-bars b { width: var(--bar); height: 100%; display: block; background: linear-gradient(90deg, #e8b631, var(--blue)); border-radius: inherit; }
.source-bars strong { font-size: 9px; }
.type-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.type-stat { padding: 10px; display: flex; align-items: center; justify-content: space-between; background: #f8f9fc; border: 1px solid #ebedf3; border-radius: 7px; }
.type-stat span { font-size: 9px; }
.type-stat strong { color: var(--blue); font-size: 16px; }
.type-stat-freelance strong { color: var(--orange); }
.panel-footer-link {
  min-height: 30px;
  margin-top: auto;
  padding-top: 9px;
  display: block;
  color: #64718b;
  border-top: 1px solid #edf0f5;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
}
.panel-footer-link:hover { color: var(--blue); }
.empty-copy { color: var(--muted); font-size: 10px; }

/* Catalogue des offres */
.catalog-page { width: min(1480px, 100%); margin: 0 auto; }
.catalog-heading {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.catalog-heading .breadcrumbs { margin-bottom: 8px; }
.catalog-heading h1 { margin: 0 0 4px; font-size: 27px; }
.catalog-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.catalog-filters { padding: 13px; }
.catalog-filters form {
  display: grid;
  grid-template-columns: minmax(270px, 1.7fr) repeat(5, minmax(125px, 1fr)) auto auto;
  align-items: center;
  gap: 8px;
}
.catalog-filters input, .catalog-filters select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  font-size: 10px;
}
.catalog-filters input:focus, .catalog-filters select:focus {
  border-color: #e1b858;
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.catalog-search { position: relative; }
.catalog-search span { position: absolute; top: 7px; left: 12px; color: #7c88a0; font-size: 18px; }
.catalog-search input { padding-left: 37px; }
.catalog-filters .primary-button { min-height: 40px; }
.reset-link { padding: 8px 4px; color: var(--blue); font-size: 9px; font-weight: 600; }
.catalog-list { margin-top: 14px; overflow: hidden; }
.catalog-list-header {
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.catalog-list-header h2 { margin: 0; font-size: 14px; }
.catalog-list-header p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.catalog-list-header > span { color: #8490a5; font-size: 9px; }
.catalog-table-head, .catalog-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 115px 145px 105px 115px 145px 100px;
  align-items: center;
  gap: 12px;
}
.catalog-table-head {
  min-height: 38px;
  padding: 0 18px;
  color: #7b879d;
  background: #f8f9fc;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.catalog-table-head span:last-child { text-align: right; }
.catalog-row {
  min-height: 72px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf0f5;
  transition: background .18s;
}
.catalog-row:last-child { border-bottom: 0; }
.catalog-row:hover { background: #fafbff; }
.catalog-row > span, .catalog-row time { color: #5e6a82; font-size: 10px; }
.catalog-offer { min-width: 0; display: flex; align-items: center; gap: 11px; }
.company-mini-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #d4a625, #a16207);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}
.catalog-offer > div { min-width: 0; }
.catalog-offer a, .catalog-offer small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-offer a { color: var(--ink); font-size: 11px; font-weight: 700; }
.catalog-offer a:hover { color: var(--blue); }
.catalog-offer small, .catalog-location small { margin-top: 3px; color: #8a94a8; font-size: 9px; }
.catalog-location small { display: block; }
.catalog-row i { font-style: normal; }
.catalog-actions { display: flex; justify-content: flex-end; gap: 5px; }
.catalog-actions a {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #65728c;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 10px;
}
.catalog-actions a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.catalog-empty { padding: 75px 20px; text-align: center; }
.catalog-empty > span { color: #a7b0c2; font-size: 38px; }
.catalog-empty h2 { margin: 8px 0 4px; font-size: 18px; }
.catalog-empty p { margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.catalog-pagination {
  min-height: 54px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.catalog-pagination a { color: var(--blue); font-weight: 600; }
.catalog-pagination a:last-child { justify-self: end; }
.catalog-pagination strong { color: #6c7890; font-size: 9px; }

/* Pages intérieures */
.page-wrap { width: min(1180px, 96%); margin: 0 auto; }
.breadcrumbs { margin: 2px 0 16px; display: flex; align-items: center; gap: 8px; color: #8490a6; font-size: 11px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs strong { max-width: 420px; overflow: hidden; color: #536079; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero {
  min-height: 170px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.detail-identity { min-width: 0; display: flex; align-items: flex-start; gap: 18px; }
.company-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #c99316, #a16207);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}
.detail-kicker { margin-bottom: 5px; color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.detail-identity h1 { margin: 0 0 4px; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; }
.detail-identity p { margin: 0; color: var(--muted); }
.detail-badges { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.status-pill { color: #4f5b72; background: #eef0f5; }
.status-nouvelle { color: #285fd0; background: #e7efff; }
.status-a_analyser { color: #ac680d; background: var(--orange-soft); }
.status-interessante { color: #168b50; background: var(--green-soft); }
.status-candidature_envoyee { color: #6741c5; background: var(--purple-soft); }
.neutral-pill { color: #54627c; background: #eef1f5; }
.detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.quick-status-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 11px;
  background: #f7f8fc;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}
.quick-status-form label {
  color: #69758d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.quick-status-form select {
  min-width: 155px;
  height: 34px;
  padding: 0 30px 0 10px;
  color: #35415a;
  background: #fff;
  border: 1px solid #d9deea;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.quick-status-form select:focus {
  border-color: #e1b858;
  outline: 0;
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.danger-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--red);
  background: #fff;
  border: 1px solid #f0c5cd;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.danger-button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.archive-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9a5b08;
  background: #fffaf0;
  border: 1px solid #edcf9e;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.archive-button:hover {
  color: #fff;
  background: #b76b0b;
  border-color: #b76b0b;
}
.delete-icon.archive-icon { color: #9a5b08; background: #fff3d9; }
.icon-danger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff;
  border: 1px solid #f0c5cd;
  border-radius: 8px;
}
.icon-danger:hover { color: #fff; background: var(--red); }
.detail-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.detail-main { padding: 26px; }
.detail-main > section { padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #edf0f5; }
.detail-main > section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.detail-main h2 { margin-bottom: 13px; font-size: 15px; }
.summary-copy { margin: 0; color: #41506b; font-size: 16px; line-height: 1.7; }
.prose { color: #536079; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-list span { padding: 6px 10px; color: #784204; background: var(--blue-soft); border: 1px solid #f0d98a; border-radius: 6px; font-size: 10px; font-weight: 600; }
.personal-notes { margin: 0 -8px -8px !important; padding: 20px !important; background: #fffaf0; border: 1px solid #f3dfb7 !important; border-radius: 8px; }
.detail-aside { display: grid; gap: 14px; }
.info-panel, .history-panel { padding: 18px; }
.info-panel .panel-title, .history-panel .panel-title { padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.info-panel dl { margin: 0; }
.info-panel dl > div { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf0f5; }
.info-panel dl > div:last-child { border-bottom: 0; }
.info-panel dt { color: var(--muted); font-size: 10px; }
.info-panel dd { margin: 0; color: #3d4962; font-size: 10px; font-weight: 600; text-align: right; }
.history-panel p { position: relative; margin: 14px 0 0; padding-left: 18px; color: #738099; font-size: 9px; }
.history-panel p::before { content: ""; position: absolute; top: 4px; left: 4px; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.history-panel p::after { content: ""; position: absolute; top: 11px; bottom: -18px; left: 6px; width: 1px; background: #dce1ec; }
.history-panel p:last-child::after { display: none; }

/* Formulaires */
.form-page { max-width: 980px; }
.page-heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin-bottom: 5px; font-size: 28px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.offer-form { display: grid; gap: 14px; }
.form-card { padding: 22px; }
.form-section-title { margin-bottom: 20px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.form-section-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.form-section-title h2 { margin: 0; font-size: 15px; }
.form-section-title p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-wide { grid-column: 1 / -1; }
.field label { gap: 7px; }
.field label sup { color: var(--red); }
.field textarea { resize: vertical; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.field-error { display: block; margin-top: 4px; color: var(--red); font-size: 10px; }
.checkbox-field { min-height: 55px; display: flex; align-items: center; gap: 9px; padding-top: 17px; }
.checkbox-field input { width: 17px; min-height: 17px; accent-color: var(--blue); }
.checkbox-field label { display: block; }
.form-error { padding: 12px 14px; color: #a93248; background: var(--red-soft); border: 1px solid #f2c8d0; border-radius: 8px; font-size: 11px; }
.form-error ul { margin: 0; padding-left: 18px; }
.sticky-form-actions {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(29, 42, 77, .13);
  backdrop-filter: blur(12px);
}
.sticky-form-actions > a { color: #6e7890; font-size: 11px; font-weight: 600; }

/* Suppression */
.delete-card { max-width: 620px; margin: 50px auto 0; padding: 42px; text-align: center; }
.delete-icon { width: 54px; height: 54px; margin: 0 auto 13px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: 24px; font-weight: 700; box-shadow: 0 9px 20px rgba(217, 77, 104, .25); }
.delete-label { color: var(--red); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.delete-card h1 { margin: 8px 0; font-size: 28px; }
.delete-card > p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); font-size: 12px; }
.delete-offer-preview { max-width: 460px; margin: 0 auto 25px; padding: 12px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; background: #f8f9fc; border: 1px solid #e7eaf1; border-radius: 9px; text-align: left; }
.delete-offer-preview .company-logo { width: 42px; height: 42px; border-radius: 8px; font-size: 10px; }
.delete-offer-preview strong, .delete-offer-preview small { display: block; }
.delete-offer-preview strong { color: var(--ink); font-size: 11px; }
.delete-offer-preview small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.delete-card form { display: flex; justify-content: center; gap: 9px; }

/* Connexion */
.auth-main { min-height: 100vh; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
.login-showcase {
  position: relative;
  overflow: hidden;
  padding: 54px 6vw;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 12% 88%, rgba(232, 182, 49, .55), transparent 28%),
    linear-gradient(145deg, #4a2b05, #a16207 55%, #d9a514);
}
.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.showcase-brand { position: relative; display: flex; align-items: center; gap: 13px; font: 700 19px "Figtree", sans-serif; }
.showcase-brand .app-logo { color: var(--blue); background: #fff; box-shadow: 0 10px 25px rgba(74, 43, 5, .24); }
.showcase-copy {
  position: relative;
  max-width: 620px;
  margin: clamp(85px, 13vh, 145px) 0 auto;
  padding-bottom: 35px;
}
.showcase-copy h1 { margin-bottom: 20px; color: #fff; font-size: clamp(42px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.04em; }
.showcase-copy h1 em { display: block; color: #ffe7a0; font-style: normal; }
.showcase-copy p { max-width: 510px; color: #fff1c2; font-size: 15px; }
.mini-pipeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; transform: translateY(24px); }
.mini-pipeline > div { min-height: 145px; padding: 12px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); border-radius: 10px 10px 0 0; backdrop-filter: blur(8px); }
.mini-pipeline span { display: block; margin-bottom: 10px; color: #e7eaff; font-size: 9px; font-weight: 700; }
.mini-pipeline i { height: 35px; margin-top: 7px; display: block; background: rgba(255,255,255,.88); border-radius: 6px; }
.login-area { padding: 45px 7vw; display: grid; place-items: center; background: #fff; }
.login-box { width: min(410px, 100%); }
.login-eyebrow { display: block; margin-bottom: 9px; color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.login-box h2 { margin-bottom: 8px; font-size: 31px; }
.login-box > p { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.login-box form { display: grid; gap: 15px; }
.login-box label { font-size: 11px; }
.login-box input { min-height: 46px; font-size: 13px; }
.login-submit { width: 100%; min-height: 46px; margin-top: 6px; }
.login-box > small { display: block; margin-top: 22px; color: #9aa3b4; text-align: center; font-size: 9px; }

/* Statistiques */
.stats-page { width: min(1480px, 100%); margin: 0 auto; }
.stats-heading {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.stats-heading .breadcrumbs { margin-bottom: 8px; }
.stats-heading h1 { margin: 0 0 4px; font-size: 31px; }
.stats-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.stats-period-filter { display: grid; gap: 6px; }
.stats-period-filter label { color: #69758d; font-size: 10px; font-weight: 700; }
.stats-period-filter select {
  min-width: 180px;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  font-size: 12px;
  font-weight: 600;
}
.stats-period-filter select:focus { border-color: #e1b858; box-shadow: 0 0 0 3px var(--blue-soft); }
.stats-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.stats-kpis article { min-height: 125px; padding: 20px; display: flex; align-items: center; gap: 15px; }
.stats-kpi-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
}
.kpi-cyan { color: #1881d7; background: #e7f4ff; }
.kpi-green { color: var(--green); background: var(--green-soft); }
.kpi-purple { color: var(--purple); background: var(--purple-soft); }
.kpi-orange { color: var(--orange); background: var(--orange-soft); }
.stats-kpis small { display: block; color: #758099; font-size: 11px; font-weight: 600; }
.stats-kpis strong { display: block; margin: 2px 0; color: var(--ink); font: 700 28px "Figtree", sans-serif; }
.stats-kpis p { margin: 0; color: #929bad; font-size: 10px; }
.evolution-panel { margin-top: 14px; padding: 22px; }
.stats-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.stats-panel-heading h2 { margin: 0; font-size: 17px; }
.stats-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.stats-panel-heading > span { padding: 6px 9px; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-size: 10px; font-weight: 700; }
.stats-panel-heading > a { color: var(--blue); font-size: 11px; font-weight: 600; }
.daily-chart {
  height: 270px;
  margin-top: 20px;
  padding: 15px 8px 0;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow-x: auto;
  border-top: 1px solid #edf0f5;
}
.daily-column { min-width: 28px; flex: 1; display: grid; grid-template-rows: 20px 1fr 24px; align-items: end; text-align: center; }
.daily-column > strong { align-self: center; color: #64718a; font-size: 9px; }
.daily-column > div { height: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #dfe4ee; }
.daily-column i {
  width: min(24px, 72%);
  height: max(5px, var(--height));
  display: block;
  background: linear-gradient(180deg, #e8b631, var(--blue));
  border-radius: 5px 5px 0 0;
  transition: filter .18s;
}
.daily-column:hover i { filter: brightness(.88); }
.daily-column > span { align-self: center; color: #8a94a7; font-size: 8px; white-space: nowrap; }
.stats-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats-grid > section { min-height: 300px; padding: 22px; }
.stat-progress-list { margin-top: 22px; display: grid; gap: 18px; }
.stat-progress-list header { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.stat-progress-list header > span { color: #4e5a72; font-size: 12px; font-weight: 600; }
.stat-progress-list header strong { color: var(--ink); font-size: 12px; }
.stat-progress-list header small { margin-left: 5px; color: #929bad; font-size: 9px; }
.stat-progress-list i, .ranking-list i { height: 8px; display: block; overflow: hidden; background: #edf0f5; border-radius: 6px; }
.stat-progress-list b, .ranking-list b { width: var(--value); height: 100%; display: block; background: var(--blue); border-radius: inherit; }
.stat-progress-list .bar-a_analyser { background: var(--orange); }
.stat-progress-list .bar-interessante { background: var(--green); }
.stat-progress-list .bar-candidature_envoyee { background: var(--purple); }
.type-distribution { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-block { min-height: 92px; padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: #f6f8ff; border: 1px solid #e5e9fb; border-radius: 9px; }
.type-block span { color: #53617b; font-size: 11px; font-weight: 600; }
.type-block strong { color: var(--blue); font-size: 25px; }
.type-block small { color: #8c96aa; font-size: 9px; }
.type-block-freelance { background: #fff9ef; border-color: #f4e4c7; }
.type-block-freelance strong { color: var(--orange); }
.type-block-autre { background: #f6f7f9; border-color: #e5e7ec; }
.type-block-autre strong { color: #707b90; }
.ranking-list { margin-top: 18px; display: grid; gap: 9px; }
.ranking-list > div { min-height: 38px; display: grid; grid-template-columns: 28px minmax(90px, 145px) 1fr 28px; align-items: center; gap: 10px; }
.ranking-list .rank { width: 25px; height: 25px; display: grid; place-items: center; color: #65728b; background: #f0f2f7; border-radius: 6px; font-size: 9px; font-weight: 700; }
.ranking-list strong { overflow: hidden; color: #4d5972; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list > div > span:last-child { color: var(--ink); font-size: 10px; font-weight: 700; text-align: right; }
.ranking-list b { background: linear-gradient(90deg, #e8b631, var(--blue)); }
.location-ranking b { background: linear-gradient(90deg, #51c487, var(--green)); }
.stats-recent-panel { margin-top: 14px; padding: 22px; }
.stats-recent-list { margin-top: 15px; display: grid; }
.stats-recent-list > a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(220px, 1fr) 110px 150px 115px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f5;
}
.stats-recent-list > a:hover { background: #fafbff; }
.stats-recent-list .company-mini-logo { width: 36px; height: 36px; }
.stats-recent-list > a > span:nth-child(2) { min-width: 0; }
.stats-recent-list strong, .stats-recent-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-recent-list strong { color: var(--ink); font-size: 11px; }
.stats-recent-list small, .stats-recent-list time { color: #8993a7; font-size: 9px; }

/* Échelle de confort : interface agrandie d’un cran */
body { font-size: 15px; }
.app-header { height: 84px; grid-template-columns: 280px minmax(340px, 620px) 1fr; }
.app-brand { font-size: 22px; }
.app-logo { width: 46px; height: 46px; }
.global-search { height: 46px; }
.global-search input { font-size: 14px; }
.global-search kbd { font-size: 11px; }
.primary-button, .secondary-button, .danger-button { min-height: 44px; padding-right: 19px; padding-left: 19px; font-size: 14px; }
.notification { width: 40px; height: 40px; }
.avatar { width: 38px; height: 38px; }
.user-name, .user-menu button { font-size: 12px; }
.app-nav { top: 84px; height: 74px; }
.app-nav a { min-width: 190px; font-size: 14px; }
.nav-icon { width: 22px; height: 22px; }
.app-main { min-height: calc(100vh - 158px); padding-top: 22px; }
.panel-title h2 { font-size: 16px; }
.panel-title > a, .period-chip { font-size: 11px; }
.message { padding: 15px 18px; font-size: 14px; }

.dashboard-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dashboard-sidebar, .dashboard-content { gap: 16px; }
.quick-filters { padding: 19px; }
.summary-panel { padding: 18px; }
.quick-filters label, .field label, .login-box label { font-size: 11px; }
.quick-filters input, .quick-filters select, .field input, .field select, .field textarea, .login-box input {
  min-height: 43px;
  padding: 10px 12px;
  font-size: 12px;
}
.horizontal-filters { margin-bottom: 16px; padding: 14px 18px 16px; }
.horizontal-filters form { gap: 11px; }
.horizontal-filters .filter-submit { min-height: 43px; }
.pipeline-toolbar { min-height: 64px; padding: 14px 18px; }
.pipeline-toolbar h1 { font-size: 18px; }
.pipeline-toolbar p, .view-tools, .view-tools strong { font-size: 11px; }
.view-toggle { width: 38px; height: 34px; }
.kanban-board { grid-auto-columns: minmax(250px, 1fr); gap: 12px; padding: 12px; }
.kanban-column { min-height: 445px; }
.kanban-column > header { min-height: 48px; padding: 0 14px; }
.kanban-column > header h2 { font-size: 13px; }
.kanban-column > header span { min-width: 24px; height: 22px; font-size: 10px; }
.kanban-cards { min-height: 330px; padding: 0 10px; gap: 9px; }
.offer-card { padding: 13px; }
.offer-card-head > a:first-child { font-size: 13px; }
.offer-company { font-size: 11px; }
.offer-context { font-size: 10px; }
.offer-card footer small, .offer-type, .status-pill, .neutral-pill { font-size: 10px; }
.offer-type, .status-pill, .neutral-pill { padding: 4px 9px; }
.column-empty, .add-card { font-size: 11px; }
.add-card { min-height: 42px; }
.dashboard-bottom { gap: 14px; }
.dashboard-bottom > article { padding: 17px; }
.activity-list > a { min-height: 43px; }
.activity-list strong { font-size: 11px; }
.activity-list small, .activity-list time { font-size: 9px; }
.source-bars > div, .source-bars strong, .type-stat span, .panel-footer-link { font-size: 10px; }
.type-stat strong { font-size: 18px; }

.catalog-heading { min-height: 118px; }
.catalog-heading h1 { font-size: 31px; }
.catalog-heading p, .breadcrumbs { font-size: 12px; }
.catalog-filters { padding: 15px; }
.catalog-filters input, .catalog-filters select { height: 44px; padding: 0 12px; font-size: 12px; }
.catalog-search span { top: 8px; font-size: 19px; }
.catalog-filters .primary-button { min-height: 44px; }
.reset-link { font-size: 10px; }
.catalog-list-header { min-height: 72px; padding: 0 21px; }
.catalog-list-header h2 { font-size: 16px; }
.catalog-list-header p, .catalog-list-header > span { font-size: 10px; }
.catalog-table-head { min-height: 43px; padding: 0 21px; font-size: 9px; }
.catalog-row { min-height: 82px; padding: 12px 21px; }
.catalog-row > span, .catalog-row time { font-size: 11px; }
.company-mini-logo { width: 40px; height: 40px; font-size: 10px; }
.catalog-offer a { font-size: 13px; }
.catalog-offer small, .catalog-location small { font-size: 10px; }
.catalog-actions a { width: 31px; height: 31px; font-size: 11px; }
.catalog-pagination { min-height: 60px; font-size: 11px; }
.catalog-pagination strong { font-size: 10px; }

.page-wrap { width: min(1240px, 96%); }
.detail-hero { min-height: 190px; padding: 28px; }
.company-logo { width: 64px; height: 64px; font-size: 15px; }
.detail-kicker { font-size: 11px; }
.detail-identity p { font-size: 15px; }
.detail-main { padding: 30px; }
.detail-main h2 { font-size: 17px; }
.summary-copy { font-size: 18px; }
.prose { font-size: 15px; }
.skill-list span { padding: 7px 11px; font-size: 11px; }
.detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.info-panel, .history-panel { padding: 21px; }
.info-panel dt, .info-panel dd { font-size: 11px; }
.history-panel p { font-size: 10px; }

.form-page { max-width: 1040px; }
.page-heading h1 { font-size: 31px; }
.page-heading p { font-size: 13px; }
.offer-form { gap: 16px; }
.form-card { padding: 26px; }
.form-section-title { margin-bottom: 23px; grid-template-columns: 40px 1fr; }
.form-section-title > span { width: 38px; height: 38px; font-size: 11px; }
.form-section-title h2 { font-size: 17px; }
.form-section-title p { font-size: 11px; }
.form-grid { gap: 19px; }
.field small, .field-error { font-size: 10px; }
.sticky-form-actions { padding: 14px 16px; }
.sticky-form-actions > a { font-size: 12px; }

.delete-card { max-width: 680px; padding: 48px; }
.delete-card h1 { font-size: 31px; }
.delete-card > p { font-size: 13px; }
.delete-offer-preview strong { font-size: 12px; }
.delete-offer-preview small { font-size: 10px; }

.login-box { width: min(440px, 100%); }
.login-box h2 { font-size: 34px; }
.login-box > p { font-size: 13px; }
.login-box input { min-height: 50px; font-size: 14px; }
.login-submit { min-height: 50px; }
.login-eyebrow, .login-box > small { font-size: 10px; }

@media (max-width: 1180px) {
  .app-header { grid-template-columns: 220px minmax(260px, 1fr) auto; gap: 18px; padding: 0 2.5vw; }
  .user-name, .user-menu button { display: none; }
  .app-nav { padding: 0 2.5vw; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .horizontal-filters form { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .dashboard-bottom { grid-template-columns: 1fr 1fr; }
  .activity-panel { grid-column: auto; }
  .stats-kpis { grid-template-columns: repeat(3, 1fr); }
  .catalog-filters form { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .catalog-search { grid-column: span 2; }
  .catalog-list { overflow-x: auto; }
  .catalog-table-head, .catalog-row { min-width: 1050px; }
}
@media (max-width: 900px) {
  .app-header { height: 70px; grid-template-columns: auto 1fr auto; }
  .app-brand > span:last-child { display: none; }
  .app-logo { width: 38px; height: 38px; }
  .header-actions { gap: 9px; }
  .notification, .avatar { display: none; }
  .app-nav { top: 70px; height: 68px; padding: 8px 2vw; }
  .app-nav a { min-width: 150px; height: 48px; padding: 0 12px; }
  .app-main { min-height: calc(100vh - 138px); padding: 13px 2vw 45px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { grid-template-columns: 1fr; }
  .horizontal-filters form { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .summary-panel, .quick-filters { min-height: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: 1fr 1fr; }
  .login-layout { grid-template-columns: .9fr 1.1fr; }
  .mini-pipeline { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-recent-list > a { grid-template-columns: 40px minmax(180px, 1fr) 110px 120px; }
  .stats-recent-list time { display: none; }
}
@media (max-width: 680px) {
  .app-header { width: 100%; grid-template-columns: auto minmax(0, 1fr); padding: 0 14px; gap: 10px; }
  .global-search { width: 100%; min-width: 0; justify-self: stretch; }
  .global-search kbd { display: none; }
  .global-search input { font-size: 11px; }
  .header-actions { display: none; }
  .app-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -8px 24px rgba(74, 43, 5, .08);
  }
  .app-nav a {
    min-width: 0;
    height: 54px;
    padding: 5px 3px;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    border-radius: 10px;
    font-size: 10px;
  }
  .nav-icon { width: 21px; height: 21px; }
  .dashboard-layout, .dashboard-sidebar, .dashboard-content { width: 100%; max-width: 100%; min-width: 0; }
  .app-main {
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: calc(100vh - 70px);
    padding: 10px 10px calc(90px + env(safe-area-inset-bottom));
  }
  .dashboard-sidebar { grid-template-columns: minmax(0, 1fr); }
  .horizontal-filters { padding: 12px; }
  .horizontal-filters form { grid-template-columns: 1fr 1fr; }
  .horizontal-filters .filter-submit { width: 100%; }
  .dashboard-sidebar .panel { min-width: 0; }
  .summary-panel { padding: 15px; }
  .summary-heading { margin-bottom: 13px; display: block; }
  .summary-heading h2 { font-size: 19px; }
  .summary-heading p { font-size: 12px; }
  .summary-period-filter { width: 100%; margin-top: 17px; }
  .summary-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .summary-card { min-height: 0; padding: 14px; }
  .summary-metric { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .summary-icon { width: 42px; height: 42px; }
  .summary-icon svg { width: 22px; height: 22px; }
  .summary-metric strong { font-size: 29px; }
  .pipeline-toolbar { align-items: flex-start; }
  .view-tools > span, .view-tools > strong { display: none; }
  .kanban-board { grid-auto-columns: minmax(235px, 82vw); }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .activity-panel { grid-column: auto; }
  .stats-heading { min-height: 150px; align-items: flex-end; }
  .stats-heading p { display: none; }
  .stats-period-filter select { min-width: 145px; }
  .stats-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stats-kpis article { min-height: 105px; padding: 13px; gap: 10px; }
  .stats-kpi-icon { width: 38px; height: 38px; }
  .stats-kpis strong { font-size: 23px; }
  .daily-chart { min-width: 620px; }
  .evolution-panel { overflow-x: auto; }
  .stats-grid > section { padding: 18px; }
  .type-distribution { grid-template-columns: 1fr; }
  .stats-recent-panel { padding: 18px; }
  .stats-recent-list > a { min-height: 78px; grid-template-columns: 38px 1fr auto; }
  .stats-recent-list .offer-type { display: none; }
  .stats-recent-list .status-pill { grid-column: 3; }
  .catalog-heading { min-height: 120px; align-items: flex-end; padding-bottom: 16px; }
  .catalog-heading .primary-button { width: 40px; min-height: 40px; padding: 0; overflow: hidden; font-size: 0; }
  .catalog-heading .primary-button span { font-size: 18px; }
  .catalog-filters form { grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; }
  .catalog-filters .primary-button { width: 100%; }
  .catalog-list { overflow: hidden; }
  .catalog-list-header { padding: 0 14px; }
  .catalog-table-head { display: none; }
  .catalog-row {
    min-width: 0;
    min-height: 120px;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
  }
  .catalog-offer { grid-column: 1 / -1; }
  .catalog-row > span:nth-child(2) { grid-column: 1; }
  .catalog-row > span:nth-child(3) { grid-column: 1; }
  .catalog-row > span:nth-child(4), .catalog-row > time { display: none; }
  .catalog-row > span:nth-child(6) { grid-column: 2; grid-row: 2; justify-self: end; }
  .catalog-actions { grid-column: 2; grid-row: 3; }
  .breadcrumbs { overflow-x: auto; white-space: nowrap; }
  .detail-hero { padding: 18px; display: block; }
  .detail-actions { margin-top: 20px; justify-content: flex-start; }
  .quick-status-form { width: 100%; }
  .quick-status-form select { min-width: 0; flex: 1; }
  .detail-actions .danger-button, .detail-actions .archive-button { flex: 1; }
  .detail-identity { display: block; }
  .detail-identity .company-logo { margin-bottom: 13px; }
  .detail-grid { margin-top: 10px; }
  .detail-aside { grid-template-columns: 1fr; }
  .detail-main { padding: 20px; }
  .page-heading { display: block; }
  .page-heading .status-pill { margin-top: 10px; }
  .form-card { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .sticky-form-actions { bottom: 7px; }
  .delete-card { margin-top: 20px; padding: 28px 18px; }
  .delete-offer-preview { grid-template-columns: 42px 1fr; }
  .delete-offer-preview .status-pill { grid-column: 2; }
  .delete-card form { flex-direction: column-reverse; }
  .login-layout { display: block; }
  .login-showcase { min-height: 34vh; padding: 30px 25px; }
  .showcase-copy { margin-top: 72px; padding: 0; }
  .showcase-copy h1 { font-size: 37px; }
  .showcase-copy p { display: none; }
  .login-area { min-height: 66vh; padding: 42px 25px; }
  .messages { top: 130px; right: 10px; left: 10px; }
  .message { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
