/*
 * Cockpit Pilote — mise en page et compositions des vues (design system V2).
 * Les jetons et composants communs viennent de ../../assets/design/ (tokens, base, components).
 */

:root {
  --sidebar-w: 248px;
  --shell-gap: 8px;
  --content-max: 1480px;
}

body {
  background: var(--canvas);
}

/* --- Accès rapide, chargement --------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-progress);
  height: 2px;
  pointer-events: none;
  background: transparent;
}
body.is-loading .progress {
  background: linear-gradient(90deg, transparent 0 20%, var(--accent) 20% 50%, transparent 50% 100%);
  background-size: 220% 100%;
  animation: loading 1.1s var(--ease-in-out) infinite;
}
@keyframes loading {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.boot-screen,
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.boot-screen {
  min-height: 100vh;
}
.loading {
  min-height: 40vh;
}
.boot-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.state-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 560px;
  padding: 28px;
}
.state-card h1,
.state-card h2 {
  margin: 0;
  font-size: 18px;
}
.state-card p {
  color: var(--text-muted);
}
.state-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-sunken);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.state-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-border);
}
.state-icon.accent {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent-border);
}

/* --- Enveloppe : barre latérale et « feuille » de contenu ------------------------------------ */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.layout > * {
  min-width: 0;
}

.shell {
  margin: var(--shell-gap) var(--shell-gap) var(--shell-gap) 0;
  min-height: calc(100vh - 2 * var(--shell-gap));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 36px 72px;
  outline: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px 14px;
  overflow-y: auto;
  background: var(--canvas);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
}
.brand-name {
  font-size: 17px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
}
.brand-name::after {
  content: ".";
  color: var(--accent);
}
.brand-mark .brand-mark-bg {
  fill: var(--ink);
}
.brand-mark .brand-mark-fg {
  stroke: var(--on-ink);
}
.brand-mark .brand-mark-dot {
  fill: var(--accent);
}

.workspace {
  display: grid;
  gap: 6px;
  padding: 0 4px;
}
.workspace-select {
  position: relative;
}
.workspace-select .avatar {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.workspace-select select {
  padding-left: 36px;
  min-height: 38px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-color: var(--border-control);
  background-color: var(--surface);
}

.nav {
  display: grid;
  gap: 14px;
}
.nav-group {
  display: grid;
  gap: 1px;
}
.nav-section {
  padding: 6px 10px 6px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition:
    background-color var(--dur-2) var(--ease-standard),
    color var(--dur-2) var(--ease-standard);
}
.nav-link .icon {
  color: var(--text-muted);
  transition: color var(--dur-2);
}
.nav-link:hover {
  background: var(--fill-hover);
  color: var(--text);
}
.nav-link:hover .icon {
  color: var(--text-2);
}
.nav-link[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px var(--border);
}
.nav-link[aria-current="page"] .icon {
  color: var(--accent);
}
.nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sidebar-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 0 10px;
}
.theme-switch > button {
  height: 26px;
  padding: 0 8px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 8px 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.user-meta {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.user-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-email {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar,
.sidebar-backdrop {
  display: none;
}

/* --- En-tête de page et barres d'outils ----------------------------------------------------- */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-heading {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 760px;
}
.page-eyebrow {
  margin-bottom: 2px;
}
.page-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.page-header h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  outline: none;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.5;
}
.page-actions {
  flex: none;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.toolbar select,
.card-actions select,
.toolbar input[type="date"] {
  width: auto;
  max-width: 100%;
}
.toolbar select,
.card-actions select {
  min-height: 34px;
  font-size: var(--text-sm);
}

.search-field {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}
.search-field .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 34px;
  min-height: 34px;
  font-size: var(--text-sm);
}

.filters {
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}
.filters .search-field input,
.filters select {
  box-shadow: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 14px;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.section-title .count-pill {
  font-size: 12px;
}
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

/* --- Grilles et utilitaires --------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-kpi {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.span-2 {
  grid-column: span 2;
}
.stack {
  display: grid;
  gap: 12px;
}
.stack > .btn {
  justify-self: start;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: var(--text-sm);
}
.mt {
  margin-top: 16px;
}
.mt-lg {
  margin-top: 24px;
}
.card-head > h2,
.card-head > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.card-head > h2 .icon,
.card-head > h3 .icon {
  color: var(--text-muted);
}
.card-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.empty-actions {
  justify-content: center;
}

/* --- Formulaires ----------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field .hint {
  font-size: 12px;
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-grid > .btn,
.form-grid > .full > .btn {
  justify-self: start;
}
label.row {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text);
  gap: 10px;
  cursor: pointer;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-2);
}
.check-row:hover {
  border-color: var(--border-strong);
}
.check-row input {
  margin-top: 2px;
}

/* --- Confirmation ------------------------------------------------------------------------------ */

.confirm {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.confirm p {
  padding-top: 7px;
  font-size: var(--text-md);
  line-height: 1.5;
}
.confirm-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-sunken);
  color: var(--text-2);
}
.confirm-danger .confirm-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
dialog.dialog-wide {
  width: min(1100px, calc(100vw - 32px));
}

/* --- Tableau de bord ------------------------------------------------------------------------ */

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--surface);
}
.welcome h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.welcome p {
  color: var(--text-muted);
  max-width: 62ch;
}
.welcome .card-actions {
  margin-top: 16px;
}
.welcome-art {
  color: var(--accent);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 18px 18px;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kpi .label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-sunken);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.kpi .value {
  font-size: 32px;
  font-weight: var(--weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.kpi .hint {
  font-size: 12px;
  color: var(--text-muted);
}
.kpi.is-alert .kpi-icon {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-border);
}
.kpi.is-accent .kpi-icon {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent-border);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.metric {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
}
.metric + .metric {
  border-left: 1px solid var(--border);
}
.metric .label {
  font-size: 12.5px;
  color: var(--text-muted);
}
.metric .value {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric .hint {
  font-size: 12px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.deadline {
  padding: 10px 12px;
}
.deadline-when {
  display: grid;
  justify-items: center;
  flex: none;
  width: 44px;
  padding: 5px 0 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.deadline-when .day {
  font-size: 16px;
  font-weight: var(--weight-semibold);
}
.deadline-when .month {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.deadline.overdue .deadline-when {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: var(--danger);
}
.deadline.overdue .deadline-when .month {
  color: var(--danger);
}
.deadline-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.deadline-body strong {
  font-size: var(--text-sm);
}
.deadline-body .small {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deadline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hbar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
}
.hbar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbar strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hbar .meter {
  height: 8px;
}
.hbar .meter > span {
  background: var(--bar, color-mix(in srgb, var(--text) 64%, var(--surface)));
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.chart-head h2 {
  margin: 0;
  font-size: 14.5px;
}
.chart-total {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bars-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
}
.bars-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  margin-top: -7px;
  margin-bottom: -7px;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  background:
    linear-gradient(var(--border-subtle), var(--border-subtle)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--border-subtle), var(--border-subtle)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--border-strong), var(--border-strong)) 0 100% / 100% 1px no-repeat;
}
.bar-col {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 2px;
  border-radius: 6px 6px 0 0;
  transition: background-color var(--dur-2);
}
.bar-col:hover {
  background: var(--fill-hover);
}
.bar {
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--ink) 22%, var(--surface));
  transition:
    background-color var(--dur-2),
    height var(--dur-5) var(--ease-out);
}
.bar-col:hover .bar {
  background: color-mix(in srgb, var(--ink) 45%, var(--surface));
}
.bar.current,
.bar-col:hover .bar.current {
  background: var(--accent);
}
.bar-tip {
  position: absolute;
  left: 50%;
  top: -34px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition:
    opacity var(--dur-2),
    transform var(--dur-2) var(--ease-out);
}
.bar-col:hover .bar-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bar-col:first-child .bar-tip {
  left: 0;
  transform: translate(0, 4px);
}
.bar-col:first-child:hover .bar-tip {
  transform: none;
}
.bar-col:last-child .bar-tip {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}
.bar-col:last-child:hover .bar-tip {
  transform: none;
}
.bars-labels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bars-labels span {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

/* --- Candidatures : kanban ------------------------------------------------------------------ */

.kanban-frame {
  position: relative;
}
.kanban-frame::before,
.kanban-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 14px;
  width: 44px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-standard);
}
.kanban-frame::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}
.kanban-frame::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}
.kanban-frame.can-scroll-left::before,
.kanban-frame.can-scroll-right::after {
  opacity: 1;
}
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
}
/* Carte tenue : pas d'aimantation, le défilement automatique reste fluide. */
.kanban.is-dragging {
  scroll-snap-type: none;
}
.kanban-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  scroll-snap-align: start;
  transition:
    background-color var(--dur-2),
    border-color var(--dur-2),
    box-shadow var(--dur-2);
}
.kanban-column.drop-target {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.kanban-column > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 6px 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.kanban-column > h2 .count-pill {
  margin-left: auto;
}
.kanban-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: grab;
  transition:
    border-color var(--dur-2) var(--ease-standard),
    box-shadow var(--dur-2) var(--ease-standard),
    transform var(--dur-2) var(--ease-standard),
    opacity var(--dur-2);
}
.kanban-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kanban-card[aria-grabbed="true"] {
  opacity: 0.5;
  transform: rotate(-1deg);
}
.kanban-card .grip {
  position: absolute;
  top: 11px;
  right: 8px;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity var(--dur-2);
}
.kanban-card:hover .grip {
  opacity: 1;
}
.kanban-card .title {
  font-size: 13.5px;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-right: 14px;
}
.kanban-company {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.kanban-company span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kanban-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.kanban-move {
  display: block;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.kanban-move select {
  min-height: 28px;
  padding: 3px 30px 3px 9px;
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
  background-position: right 6px center;
}
.kanban-move select:hover {
  background-color: var(--fill-hover);
  border-color: transparent;
  color: var(--text);
}
.kanban-move select:focus {
  background-color: var(--surface);
}
.kanban-empty {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 90px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--text-subtle);
  font-size: 12px;
}

/* --- Candidatures : tableau ------------------------------------------------------------------ */

.cell-company {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.cell-title {
  min-width: 180px;
  font-weight: var(--weight-medium);
}
.cell-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}
.cell-date {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* --- Fiche candidature ---------------------------------------------------------------------- */

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}
.detail-actions .spacer {
  min-width: 12px;
}
.dl-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 18px;
  font-size: var(--text-sm);
}
.dl-grid dt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}
.dl-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.offer-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.offer-full {
  white-space: pre-wrap;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-2);
  max-height: 280px;
  overflow-y: auto;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
}
.notes {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  white-space: pre-wrap;
  color: var(--text-2);
}

.task-list .list-item {
  padding: 9px 10px 9px 12px;
}
.task-list label.row {
  flex: 1;
  min-width: 0;
}
.task-done {
  color: var(--text-muted);
  text-decoration: line-through;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.inline-form input {
  flex: 1 1 200px;
  min-width: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  font-size: var(--text-sm);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li:last-child::before {
  display: none;
}
.timeline-dot {
  width: 9px;
  height: 9px;
  margin: 5px 0 0 3px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-control);
}
.timeline li:first-child .timeline-dot {
  border-color: var(--accent);
}
.timeline-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.timeline-time {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* --- Profil maître ------------------------------------------------------------------------- */

.profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 20px;
  text-align: center;
  border: 1.5px dashed var(--border-control);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface-sunken);
  transition:
    border-color var(--dur-2),
    background-color var(--dur-2);
}
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--accent);
}
.dropzone:focus-within {
  box-shadow: 0 0 0 3px var(--ring);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--accent-text);
}
.dropzone-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}
.dropzone-hint {
  font-size: 12.5px;
  color: var(--text-muted);
}
.import-status:not(:empty) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.recent-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.completeness {
  display: flex;
  align-items: center;
  gap: 20px;
}
.completeness .gauge-label {
  font-size: 22px;
}
.completeness-body {
  display: grid;
  gap: 8px;
}
.completeness-body p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.questions {
  display: grid;
  gap: 0;
  counter-reset: question;
}
.question {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}
.question:first-child {
  border-top: 0;
  padding-top: 4px;
}
.question-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.question .field > strong {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}
.questions-foot {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.item {
  align-items: flex-start;
  padding: 14px 14px 14px 16px;
}
.item.pending {
  border-color: color-mix(in srgb, var(--warning-solid) 45%, var(--border));
  background:
    linear-gradient(90deg, var(--warning-soft), transparent 40%),
    var(--surface);
  box-shadow: inset 3px 0 0 var(--warning-solid);
}
.item-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.item-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.item-org {
  color: var(--text-muted);
  font-weight: var(--weight-regular);
}
.item-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.item ul {
  margin: 4px 0 2px;
  padding-left: 16px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-2);
}
.item ul li::marker {
  color: var(--text-subtle);
}
.item .chips {
  margin-top: 6px;
}
.item .chip {
  min-height: 24px;
  padding: 2px 9px;
  font-size: 12px;
}
.item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.skill-proof {
  color: var(--success);
}

/* --- CV et lettre ciblés -------------------------------------------------------------------- */

.analysis {
  display: grid;
  gap: 14px;
}
.analysis-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}
.analysis-row > span:first-child {
  font-size: 12.5px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.keywords {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.generate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.generate-bar select {
  width: auto;
  min-width: 168px;
  background-color: var(--surface);
}
.generate-bar .spacer {
  min-width: 8px;
}
.gen-status:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ai-soft);
  color: var(--ai);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.gen-status:not(:empty)::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ai) 30%, transparent);
  border-top-color: var(--ai);
  animation: spin 0.8s linear infinite;
}

.version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.version-bar label {
  font-size: var(--text-sm);
}
.version-bar select {
  width: auto;
  min-width: 260px;
}

.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.doc-toolbar h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.doc-toolbar .version-tag {
  color: var(--text-muted);
  font-weight: var(--weight-regular);
}
.ai-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--ai-border);
  background: var(--ai-soft);
  color: var(--ai);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.ai-notice .icon {
  margin-top: 1px;
}
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  align-items: start;
  gap: 18px;
}
.doc-layout.single {
  grid-template-columns: minmax(0, 1fr);
}
.doc-stage {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 14px 14px,
    var(--surface-sunken);
  border: 1px solid var(--border);
}
.doc-preview {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 48px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--paper-text);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow:
    0 1px 2px rgb(20 21 19 / 8%),
    0 12px 32px -12px rgb(20 21 19 / 22%);
}
.doc-preview h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.doc-preview h3 {
  margin: 18px 0 8px;
  padding-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper-text);
  border-bottom: 1px solid var(--paper-rule);
}
.doc-preview p {
  margin: 0 0 8px;
}
.doc-preview ul {
  margin: 3px 0 8px;
  padding-left: 18px;
}
.doc-preview .entry-head {
  font-weight: var(--weight-semibold);
  margin-top: 8px;
}
.doc-preview .period {
  color: var(--paper-muted);
  font-weight: var(--weight-regular);
}
.doc-preview .align-end {
  text-align: right;
}
.doc-side {
  display: grid;
  gap: 14px;
}
.coverage {
  display: flex;
  align-items: center;
  gap: 16px;
}
.coverage .gauge-label {
  font-size: 17px;
}
.coverage h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
}
.coverage p {
  font-size: 12.5px;
  color: var(--text-muted);
}
.missing-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12.5px;
  line-height: 1.5;
}
.decisions {
  display: grid;
  gap: 8px;
}
.decision {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--dur-2);
}
.decision:hover {
  border-color: var(--border-strong);
}
.decision-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  margin-top: 1px;
}
.decision.included .decision-icon {
  background: var(--success-soft);
  color: var(--success);
}
.decision.excluded {
  background: var(--surface-sunken);
}
.decision.excluded .decision-icon {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.decision-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}
.decision .reason {
  grid-column: 2 / -1;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.decision .rule {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.decision-foot {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.score-bar {
  flex: 1;
  max-width: 120px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  overflow: hidden;
}
.score-bar > span {
  display: block;
  height: 100%;
  background: var(--text-muted);
  border-radius: inherit;
}
.decision.included .score-bar > span {
  background: var(--success-solid);
}
.editor-card > summary {
  padding: 2px 0;
}
.editor-card[open] > summary {
  margin-bottom: 16px;
}
.editor-card form label {
  margin-top: 6px;
}

/* --- CV et lettres (liste) ------------------------------------------------------------------ */

.doc-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.doc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.doc-card-head h2 {
  margin: 0;
  font-size: 15px;
}
.doc-card-head p {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.version-item {
  padding: 9px 12px;
}
.version-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* --- Radar ------------------------------------------------------------------------------------ */

.radar-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
}
.suggestions {
  display: grid;
  gap: 12px;
}
.suggestion {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}
.suggestion-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.suggestion-head h2 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: -0.015em;
}
.suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.suggestion-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.offer-logo {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
}
.score {
  margin-left: auto;
  flex: none;
}
.score .gauge-label {
  font-size: 13px;
}
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
}
.reasons li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
}
.reasons .icon {
  margin-top: 2px;
  color: var(--success);
}
.source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.suggestion .card-actions {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Relances ---------------------------------------------------------------------------------- */

.followup {
  align-items: flex-start;
  flex-wrap: wrap;
}
.followup.overdue {
  box-shadow: inset 3px 0 0 var(--danger-solid);
}
.followup.today {
  border-color: color-mix(in srgb, var(--warning-solid) 45%, var(--border));
  box-shadow: inset 3px 0 0 var(--warning-solid);
}
.list-item > .followup-body {
  display: grid;
  flex: 1 1 260px;
  gap: 6px;
  min-width: 0;
}
.followup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.followup-actions input[type="date"] {
  width: auto;
  min-height: 28px;
  padding: 3px 8px;
  font-size: 12.5px;
}

/* --- Entreprises -------------------------------------------------------------------------------- */

.company-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.company-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-head h2 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: -0.015em;
}
.company-head .text-link {
  font-size: 12.5px;
}
.company-notes {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  color: var(--text-2);
  white-space: pre-wrap;
}
.company-apps .list-item {
  padding: 9px 12px;
}

/* --- Import et export ------------------------------------------------------------------------------ */

.transfer-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.transfer-card > .card-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
}
.transfer-card > .card-head h2 {
  margin: 1px 0 3px;
  font-size: 14.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.transfer-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.file-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px dashed var(--border-control);
  border-radius: 10px;
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: border-color var(--dur-2);
}
.file-zone:hover,
.file-zone:focus-within {
  border-color: var(--accent);
}
.file-zone:focus-within {
  box-shadow: 0 0 0 3px var(--ring);
}
.file-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-zone strong {
  color: var(--text);
}
.report h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Offre et facturation ---------------------------------------------------------------------- */

.usage {
  display: grid;
  gap: 14px;
}
.usage-line {
  display: grid;
  gap: 7px;
}
.usage-line .row {
  font-size: var(--text-sm);
}
.usage-line strong {
  font-variant-numeric: tabular-nums;
}
.ai-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.ai-figure {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
}
.ai-figure .value {
  display: block;
  font-size: 19px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ai-figure .label {
  font-size: 12px;
  color: var(--text-muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 22px;
}
.plan h2 {
  margin: 0;
  font-size: 15px;
}
.plan.current {
  border-color: var(--ink);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px var(--ink);
}
.plan-price {
  font-size: 28px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plan-price small {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
  color: var(--text-muted);
}
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.plan-features .icon {
  margin-top: 2px;
  color: var(--success);
}
.plan-foot {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Mon compte --------------------------------------------------------------------------------- */

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.identity strong {
  display: block;
  font-size: var(--text-md);
}
.identity span {
  font-size: 12.5px;
  color: var(--text-muted);
}
.danger-zone {
  border-color: var(--danger-border);
  background:
    linear-gradient(180deg, var(--danger-soft), transparent 60%),
    var(--surface);
}
.danger-zone > h2 .icon {
  color: var(--danger);
}
.school-row select {
  width: auto;
}

/* --- Connexion ---------------------------------------------------------------------------------- */

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  overflow: hidden;
  color: #edede8;
  background:
    radial-gradient(60% 50% at 85% 15%, rgb(255 91 31 / 18%), transparent 70%),
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / 7%) 1px, transparent 0) 0 0 / 22px 22px,
    #0e0e0d;
}
.auth-aside::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgb(255 255 255 / 7%) 0 1px, transparent 1px 44px);
  pointer-events: none;
}
.brand-inverse {
  color: #edede8;
}
.brand-inverse .brand-mark .brand-mark-bg {
  fill: #edede8;
}
.brand-inverse .brand-mark .brand-mark-fg {
  stroke: #0e0e0d;
}
.auth-pitch {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 520px;
}
.auth-pitch .eyebrow {
  color: #a8a8a0;
}
.auth-claim {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: var(--weight-semibold);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.auth-claim em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ff8552;
}
.auth-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  color: #c9c9c2;
  font-size: var(--text-md);
}
.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.auth-point-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: #ff8552;
}
.auth-foot {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  color: #a8a8a0;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.auth-card {
  display: grid;
  gap: 22px;
  width: min(400px, 100%);
}
.auth-card h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.auth-card-brand {
  display: none;
  justify-self: start;
  padding: 0;
}
.auth-form {
  gap: 16px;
}
.auth-form .btn {
  justify-self: stretch;
}
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.auth-note .icon {
  margin-top: 1px;
}
.auth-lead {
  color: var(--text-muted);
  font-size: var(--text-md);
}

/* --- Écrans moyens -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .kpi-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1280px) {
  .main {
    padding: 26px 28px 64px;
  }
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-side {
    position: static;
  }
}

@media (max-width: 1100px) {
  .dash-grid,
  .profile-top,
  .radar-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-screen {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-aside {
    display: none;
  }
  .auth-card-brand {
    display: inline-flex;
  }
}

/* --- Petits écrans : la barre latérale devient un tiroir ------------------------------------------- */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-drawer);
    width: min(300px, 86vw);
    padding-top: 18px;
    background: var(--canvas);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    /* Fermé, le menu sort aussi de l'ordre de tabulation (visibility). */
    visibility: hidden;
    transition:
      transform var(--dur-4) var(--ease-out),
      visibility 0s linear var(--dur-4);
  }
  .sidebar.open {
    transform: none;
    visibility: visible;
    transition: transform var(--dur-4) var(--ease-out);
  }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--backdrop);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fade-in var(--dur-3) var(--ease-out);
  }
  .shell {
    margin: 0;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 54px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
  }
  .brand-compact .brand-name {
    font-size: 16px;
  }
  .main {
    padding: 22px 18px 72px;
  }
  .grid-2,
  .grid-3,
  .form-grid,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .span-2 {
    grid-column: auto;
  }
  .page-header h1 {
    font-size: 23px;
  }
  .hbar {
    grid-template-columns: 116px minmax(0, 1fr) 28px;
  }
}

@media (max-width: 640px) {
  /* Une date sur deux, en gardant la semaine en cours : les libellés ne se chevauchent pas. */
  .bars-labels span:nth-last-child(even) {
    visibility: hidden;
  }
  .ai-figure {
    padding: 10px 11px;
  }
  .ai-figure .value {
    font-size: 17px;
  }
  .page-header {
    align-items: stretch;
    margin-bottom: 20px;
  }
  .page-actions {
    width: 100%;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .kpi .value {
    font-size: 26px;
  }
  .kanban {
    grid-auto-columns: minmax(78vw, 1fr);
  }
  .doc-stage {
    padding: 10px;
  }
  .doc-preview {
    padding: 26px 22px;
  }
  .analysis-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .welcome {
    grid-template-columns: minmax(0, 1fr);
  }
  .welcome-art {
    display: none;
  }
  .detail-actions {
    padding: 10px;
  }
  .toasts {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: var(--radius-lg);
  }
  .dialog-body {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-loading .progress {
    background: var(--accent);
  }
  .gen-status:not(:empty)::before {
    animation: spin 1.6s linear infinite !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .toolbar,
  .no-print,
  .toasts {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .shell {
    margin: 0;
    border: 0;
    box-shadow: none;
  }
  .doc-stage {
    padding: 0;
    border: 0;
    background: none;
  }
  .doc-preview {
    box-shadow: none;
    padding: 0;
  }
}

/* --- Formulaire de candidature ------------------------------------------------------------- */

.form-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 -4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-grid > .form-section:first-of-type,
.form-grid > datalist + .form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.form-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.form-context div {
  display: grid;
  line-height: 1.35;
}
.form-context span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Avis et encarts ----------------------------------------------------------------------------- */

.notice,
.missing-description {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.missing-description {
  border-color: color-mix(in srgb, var(--warning-solid) 40%, var(--border));
  background:
    linear-gradient(90deg, var(--warning-soft), transparent 70%),
    var(--surface);
}
.missing-description .icon {
  color: var(--warning);
  margin-top: 2px;
}
.notice .icon {
  color: var(--text-muted);
  margin-top: 2px;
}
.license-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -10px 0 16px;
}
.range-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.range-value {
  min-width: 64px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  color: var(--text-2);
}
.invitation-card {
  margin-top: 4px;
}
.school-row select {
  min-height: 30px;
  font-size: var(--text-sm);
}

/* --- Profil : documents importés et photo d'identité --------------------------------------- */

.imported-files {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.imported-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.imported-file-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-sunken);
  color: var(--text-2);
}
.imported-file-body {
  display: grid;
  flex: 1;
  min-width: 0;
}
.imported-file-name {
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.photo-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.photo-frame {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--text-subtle);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.photo-body p {
  max-width: 60ch;
}

/* --- CV : modèles et mise en forme (réglages posés par doc-style.js) ----------------------- */

@font-face {
  font-family: "CV Inter";
  src: url("../../assets/fonts/cv/inter-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Inter";
  font-weight: 700;
  src: url("../../assets/fonts/cv/inter-bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Inter";
  font-style: italic;
  src: url("../../assets/fonts/cv/inter-italic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Source Sans";
  src: url("../../assets/fonts/cv/source-sans-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Source Sans";
  font-weight: 700;
  src: url("../../assets/fonts/cv/source-sans-bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Source Sans";
  font-style: italic;
  src: url("../../assets/fonts/cv/source-sans-italic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Lora";
  src: url("../../assets/fonts/cv/lora-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Lora";
  font-weight: 700;
  src: url("../../assets/fonts/cv/lora-bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Lora";
  font-style: italic;
  src: url("../../assets/fonts/cv/lora-italic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Garamond";
  src: url("../../assets/fonts/cv/garamond-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Garamond";
  font-weight: 700;
  src: url("../../assets/fonts/cv/garamond-bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "CV Garamond";
  font-style: italic;
  src: url("../../assets/fonts/cv/garamond-italic.woff2") format("woff2");
  font-display: swap;
}

.doc-cv {
  --doc-accent: #1f3a5f;
  --doc-gap: 1;
  padding: var(--doc-pad-y, 58px) var(--doc-pad-x, 70px);
  font-family: var(--doc-font, Arial, sans-serif);
  font-size: var(--doc-size, 13.8px);
  line-height: var(--doc-leading, 1.3);
  letter-spacing: 0;
}
.doc-cv .doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.doc-cv .doc-head-text {
  flex: 1;
  min-width: 0;
}
.doc-cv[data-align="center"] .doc-head {
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.doc-cv h2 {
  font-family: var(--doc-heading-font, inherit);
  font-size: var(--doc-name-size, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--paper-text);
}
.doc-cv.name-accent h2 {
  color: var(--doc-accent);
}
.doc-cv .doc-photo {
  display: none;
  flex: none;
  width: 105px;
  height: 105px;
  object-fit: cover;
}
.doc-cv.show-photo .doc-photo {
  display: block;
}
.doc-cv[data-photo="round"] .doc-photo {
  border-radius: 50%;
}
.doc-cv h3 {
  margin: calc(14px * var(--doc-gap)) 0 calc(6px * var(--doc-gap));
  padding-bottom: 3px;
  border-bottom: 0;
  font-family: var(--doc-heading-font, inherit);
  font-size: var(--doc-heading-size, 14.5px);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--doc-accent);
}
.doc-cv.upper-headings h3 {
  text-transform: uppercase;
}
.doc-cv[data-heading="rule"] h3 {
  border-bottom: 1px solid var(--doc-accent);
}
.doc-cv[data-heading="band"] h3 {
  padding: 4px 7px 3px;
  background: color-mix(in srgb, var(--doc-accent) 12%, #fff);
}
.doc-cv[data-align="center"] h3 {
  text-align: center;
}
.doc-cv p {
  margin: 0 0 calc(6px * var(--doc-gap));
}
.doc-cv ul {
  margin: 1px 0 calc(6px * var(--doc-gap));
}
.doc-cv .entry-head {
  margin-top: calc(6px * var(--doc-gap));
  font-weight: 700;
}
.doc-cv[data-period="inline"] .entry-head .period::before {
  content: "  |  ";
  white-space: pre;
}
.doc-cv[data-period="right"] .entry-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.doc-cv[data-period="right"] .entry-head .period {
  flex: none;
}

.style-card > .card-head {
  margin-bottom: 6px;
}
.style-body {
  display: grid;
  gap: 12px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.template-card {
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition:
    border-color var(--dur-2),
    box-shadow var(--dur-2);
}
.template-card:hover {
  border-color: var(--text-muted);
}
.template-card[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.template-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.template-hint {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-muted);
}
.template-thumb {
  display: grid;
  gap: 3px;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
}
.template-thumb i {
  height: 3px;
  border-radius: 2px;
  background: var(--paper-rule);
}
.template-thumb i:first-child {
  width: 46%;
  height: 6px;
  background: var(--paper-text);
}
.template-thumb i:nth-child(2) {
  width: 100%;
  height: 4px;
  background: #1f3a5f;
}
.template-thumb i:nth-child(4) {
  width: 72%;
}
.thumb-moderne i:first-child {
  background: #1f3a5f;
}
.thumb-moderne i:nth-child(2) {
  height: 7px;
  background: #dfe5ee;
}
.thumb-compact {
  gap: 2px;
}
.thumb-compact i:nth-child(2) {
  width: 34%;
}
.thumb-centre i {
  justify-self: center;
}
.style-row {
  display: grid;
  gap: 5px;
}
.style-label {
  font-size: 12.5px;
  font-weight: var(--weight-medium);
  color: var(--text-2);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.swatch {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink);
}
.style-color {
  width: 34px;
  min-height: 28px;
  height: 28px;
  padding: 2px;
  cursor: pointer;
}
.style-block {
  display: block;
}
.style-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.style-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
}
.style-note .icon {
  flex: none;
  margin-top: 2px;
}

/* --- Langue de l'interface -------------------------------------------------------------------- */

.language-switch > button {
  height: 26px;
  min-width: 34px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
}
.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Administration de la plateforme (ADR-0021) */
.admin-tabs {
  flex-wrap: wrap;
}
.dialog-actions {
  justify-content: flex-end;
  gap: 8px;
}
.state-actions {
  gap: 8px;
}

/* --- Menu latéral repliable (ordinateur uniquement) ------------------------------------------- */

.sidebar-collapse {
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: var(--text-2);
  font-size: 13.5px;
}
.sidebar-collapse .icon {
  color: var(--text-muted);
}
.sidebar-tip {
  position: fixed;
  z-index: var(--z-toast);
  transform: translateY(-50%);
  padding: 5px 9px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12.5px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
@media (min-width: 961px) {
  .layout {
    transition: grid-template-columns var(--dur-3) var(--ease-standard);
  }
  .layout.sidebar-collapsed {
    --sidebar-w: 64px;
  }
  .sidebar-collapsed .sidebar {
    padding-inline: 10px;
    overflow-x: hidden;
  }
  /* Tout ce qui est du texte disparaît ; les icônes restent, centrées. */
  .sidebar-collapsed .sidebar .nav-label,
  .sidebar-collapsed .sidebar .brand-name,
  .sidebar-collapsed .sidebar .nav-section,
  .sidebar-collapsed .sidebar .workspace,
  .sidebar-collapsed .sidebar .sidebar-theme,
  .sidebar-collapsed .sidebar .user-meta,
  .sidebar-collapsed .sidebar .user-card .avatar {
    display: none;
  }
  .sidebar-collapsed .sidebar .brand {
    justify-content: center;
    padding-inline: 0;
  }
  .sidebar-collapsed .sidebar .nav-group + .nav-group {
    padding-top: 13px;
    border-top: 1px solid var(--border);
  }
  .sidebar-collapsed .sidebar .nav-link,
  .sidebar-collapsed .sidebar-collapse {
    justify-content: center;
    padding: 0;
  }
  .sidebar-collapsed .sidebar-collapse .icon {
    transform: rotate(180deg);
  }
  /* Le nombre de relances dues devient une pastille sur l'icône. */
  .sidebar-collapsed .sidebar .nav-count {
    position: absolute;
    top: 3px;
    right: 6px;
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
    background: var(--danger);
  }
  .sidebar-collapsed .sidebar .user-card {
    justify-content: center;
    padding: 4px;
  }
}
@media (max-width: 960px) {
  .sidebar-collapse {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .layout {
    transition: none;
  }
}

/* Catalogue de connecteurs du radar (ADR-0023) */
.connector-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.connector-facts p,
.connector-facts a {
  flex-basis: 100%;
  margin: 0;
}
.connector-facts a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Retours des testeurs, liens légaux et écran d'acceptation des conditions (ADR-0024) */
.sidebar-feedback {
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  text-align: left;
}
.sidebar-legal {
  margin: 0;
  padding: 0 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.sidebar-legal a {
  color: inherit;
}
.terms-card {
  max-width: 620px;
}
.terms-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.terms-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}
@media (min-width: 961px) {
  .sidebar-collapsed .sidebar .sidebar-legal {
    display: none;
  }
}
.terms-point-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--accent);
}
.feedback-item {
  align-items: flex-start;
}
.feedback-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.feedback-message {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Lettre : coordonnées de l'expéditeur en colonne ------------------------------------------ */

.letter-contact {
  display: grid;
  gap: 1px;
  margin-bottom: 14px;
  font-style: normal;
  /* Couleur héritée de la feuille : l'aperçu reste une page claire, même en thème sombre. */
/* --- Profil : relecture à valider, import en cours, réponses pré-cochées ----------------------- */

.validate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  border-color: var(--accent-border);
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 75%),
    var(--surface);
}
.validate-banner-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.validate-banner-body {
  flex: 1 1 260px;
}
.validate-banner-body strong {
  display: block;
  font-size: var(--text-md);
}
.validate-banner-body p {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.dropzone.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.chip-suggested {
  border-color: var(--accent-border);
  background: var(--accent-soft);
/* --- Fenêtre des offres supérieures (quota atteint) ------------------------------------------- */

.upgrade {
  display: grid;
  gap: 16px;
}
.upgrade-lead {
  margin: 0;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}
.upgrade-title {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-2);
}
.upgrade-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.upgrade-plans.single {
  grid-template-columns: minmax(0, 1fr);
}
.upgrade .plan h3 {
  margin: 0;
  font-size: 15px;
}
@media (max-width: 640px) {
  .upgrade-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
