:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-soft: #eeece6;
  --surface-strong: #15191e;
  --ink: #191b1e;
  --muted: #696d72;
  --line: #ddd8cd;
  --line-strong: #c8bfad;
  --accent: #c7a05a;
  --accent-strong: #896329;
  --accent-soft: #f7eedc;
  --amber: #c7a05a;
  --amber-soft: #fbf3e4;
  --danger: #9f3535;
  --danger-soft: #f9e7e7;
  --done: #2f7757;
  --done-soft: #e5f3ec;
  --blue: #355f8d;
  --blue-soft: #e7eef7;
  --shadow: 0 24px 60px rgba(17, 20, 24, 0.13);
  --shadow-soft: 0 12px 32px rgba(17, 20, 24, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(245, 243, 238, 0.95)),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 48vw) 1fr;
  background: #fbfcfb;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  color: #f8fbf8;
}

.brand-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 15, 13, 0.98), rgba(9, 15, 13, 0.72) 50%, rgba(9, 15, 13, 0.34)),
    linear-gradient(180deg, rgba(9, 15, 13, 0.12), rgba(9, 15, 13, 0.72));
}

.brand-content,
.brand-points {
  position: relative;
  z-index: 1;
}

.brand-content {
  display: grid;
  max-width: 520px;
  gap: 46px;
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 850;
}

.brand-panel h1 {
  margin: 8px 0 16px;
  max-width: 440px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.brand-text {
  max-width: 410px;
  margin: 0;
  color: rgba(248, 251, 248, 0.82);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: #99d6c1;
}

.brand-points {
  display: grid;
  max-width: 440px;
  gap: 10px;
  margin-top: 48px;
}

.brand-points div {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(248, 251, 248, 0.78);
}

.brand-points strong {
  color: #fff;
  font-size: 0.96rem;
}

.brand-points span {
  max-width: 360px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-stack {
  display: grid;
  width: min(100%, 440px);
  gap: 14px;
}

.login-card {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-card h2,
.panel h2 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-card p:not(.eyebrow),
.empty-state,
.subtle {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #303b35;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd8d0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 114, 88, 0.14);
}

.primary-button,
.secondary-button,
.quiet-button,
.status-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  padding: 0 16px;
  font-weight: 800;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

a.primary-button,
a.secondary-button {
  text-decoration: none;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button,
.status-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover,
.status-button:hover {
  border-color: var(--line-strong);
  background: #f8faf8;
}

.quiet-button {
  background: transparent;
  color: var(--muted);
}

.quiet-button:hover {
  background: rgba(15, 114, 88, 0.08);
  color: var(--accent-strong);
}

.status-button.en_cours,
.status-button.terminee {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.status-button.annulee {
  background: var(--danger-soft);
  color: var(--danger);
}

.delete-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6bbbb;
  border-radius: 7px;
  background: #fff;
  color: var(--danger);
  padding: 0 16px;
  font-weight: 850;
}

.delete-button:hover {
  background: var(--danger-soft);
}

.delete-button.compact {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.8rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row.right {
  justify-content: flex-end;
}

.error-box,
.success-box {
  border-radius: 7px;
  padding: 12px 14px;
  line-height: 1.45;
}

.error-box {
  border: 1px solid #ebb5b5;
  background: #fff4f4;
  color: var(--danger);
}

.success-box {
  margin-bottom: 14px;
  border: 1px solid #bcdcc7;
  background: #f0fbf4;
  color: var(--done);
}

.hidden {
  display: none !important;
}

.workspace {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
}

.sidebar-top {
  display: grid;
  gap: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup .brand-mark {
  border-color: var(--line);
  background: var(--surface-strong);
  color: #fff;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup span,
.identity span {
  color: var(--muted);
  font-size: 0.86rem;
}

.identity {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.identity strong {
  font-size: 1.02rem;
}

.nav-stack {
  display: grid;
  gap: 8px;
}

.nav-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 11px 12px;
  text-align: left;
  font-weight: 800;
}

.nav-button.active,
.nav-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.side-metric {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.side-metric span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.side-metric strong {
  font-size: 1.75rem;
}

.main-content {
  min-width: 0;
  padding: 30px;
}

.content-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 850;
}

.live-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.stat.accent {
  border-color: #d8b98f;
  background: var(--amber-soft);
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.95rem;
}

.client-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.client-filter {
  display: grid;
  min-height: 92px;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px;
  text-align: left;
}

.client-filter:hover,
.client-filter.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.client-filter span {
  font-weight: 850;
}

.client-filter strong {
  font-size: 1.55rem;
}

.client-filter small {
  color: var(--muted);
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-body {
  padding: 20px;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.request-form {
  display: grid;
  gap: 18px;
}

.field-title {
  margin-bottom: 10px;
  color: #303b35;
  font-size: 0.9rem;
  font-weight: 800;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.service-option {
  position: relative;
  display: grid;
  min-height: 116px;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #303b35;
  padding: 14px;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.service-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option span {
  font-size: 0.96rem;
  font-weight: 850;
}

.service-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.service-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented label {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 850;
}

.segmented label + label {
  border-left: 1px solid var(--line);
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label:has(input:checked) {
  background: var(--surface-strong);
  color: #fff;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 15px;
  box-shadow: 0 8px 22px rgba(18, 27, 23, 0.05);
}

.request-card.urgent {
  border-top-color: #dfb36f;
}

.request-card.confirmee {
  border-left-color: var(--amber);
}

.request-card.en_cours {
  border-left-color: var(--blue);
}

.request-card.terminee {
  border-left-color: var(--done);
}

.request-card.annulee {
  border-left-color: var(--danger);
  opacity: 0.78;
}

.request-topline,
.request-head,
.request-meta,
.button-row {
  display: flex;
  flex-wrap: wrap;
}

.request-topline,
.request-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.request-head h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.request-meta {
  gap: 7px 11px;
  color: var(--muted);
  font-size: 0.86rem;
}

.time-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f4f1;
  color: #34413a;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.pill,
.priority {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pill.neutral {
  background: var(--surface-soft);
  color: #34413a;
}

.pill.nouvelle {
  background: #e4f2ec;
  color: var(--accent-strong);
}

.pill.confirmee,
.pill.normal {
  background: var(--amber-soft);
  color: #875017;
}

.pill.en_cours {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.terminee {
  background: var(--done-soft);
  color: var(--done);
}

.pill.annulee {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill.urgent,
.priority.urgent {
  background: var(--danger-soft);
  color: var(--danger);
}

.priority.normal {
  background: #eef2ed;
  color: #536057;
}

.mini-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.note-text,
.admin-note {
  margin: 0;
  border-radius: 7px;
  padding: 10px;
  line-height: 1.45;
}

.note-text {
  background: #f8faf8;
  color: #3f4943;
}

.admin-note {
  border: 1px solid #d8b98f;
  background: var(--amber-soft);
  color: #654018;
}

.admin-action-box {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-box {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-title,
.chat-message-meta,
.chat-form {
  display: flex;
  align-items: center;
}

.chat-title {
  justify-content: space-between;
  gap: 10px;
}

.chat-title strong {
  font-size: 0.88rem;
}

.chat-title span,
.chat-message-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-thread {
  display: grid;
  max-height: 220px;
  gap: 8px;
  overflow-y: auto;
  border-radius: 8px;
  background: #f8faf8;
  padding: 10px;
}

.chat-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-message {
  display: grid;
  max-width: 88%;
  gap: 4px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.chat-message.mine {
  justify-self: end;
  border-color: rgba(15, 114, 88, 0.22);
  background: #eef8f2;
}

.chat-message.admin:not(.mine) {
  border-color: rgba(194, 139, 70, 0.32);
  background: #fff8ed;
}

.chat-message-meta {
  justify-content: space-between;
  gap: 12px;
}

.chat-message-meta strong {
  font-size: 0.78rem;
}

.chat-message p {
  margin: 0;
  color: #313b35;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chat-form {
  gap: 8px;
}

.chat-form input {
  min-height: 40px;
}

.chat-form .secondary-button {
  min-height: 40px;
}

.admin-note-input {
  min-height: 38px;
  padding: 9px 10px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lane {
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(249, 251, 249, 0.76);
}

.lane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0;
}

.lane h3 {
  margin: 0;
  font-size: 0.95rem;
}

.lane-title span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.lane-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.next-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8b98f;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 241, 223, 0.96), rgba(255, 255, 255, 0.92)),
    #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.next-job strong,
.next-job p {
  display: block;
  margin: 5px 0 0;
}

.next-job p {
  color: var(--muted);
}

.archive-section {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.table-wrap {
  overflow-x: auto;
}

.client-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.client-table th,
.client-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 8px;
  text-align: left;
}

.client-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #bcdcc7;
  border-radius: 8px;
  background: #f0fbf4;
  color: #20482a;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-weight: 800;
}

@media (max-width: 1320px) {
  .service-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1000px) {
  .login-layout,
  .workspace {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 540px;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar,
  .sidebar-top {
    gap: 16px;
  }

  .nav-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .brand-panel,
  .login-panel,
  .main-content {
    padding: 20px;
  }

  .brand-panel {
    min-height: 500px;
  }

  .brand-content {
    gap: 30px;
  }

  .brand-points div,
  .topbar,
  .panel-header,
  .next-job {
    flex-direction: column;
    align-items: stretch;
  }

  .login-card {
    padding: 24px;
  }

  .service-options,
  .stats-grid,
  .form-grid.two,
  .nav-stack {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
  }

  .button-row.right {
    justify-content: stretch;
  }

  .button-row > button {
    flex: 1 1 150px;
  }

  .chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-message {
    max-width: 100%;
  }

}

/* Professional visual system */
.login-layout {
  grid-template-columns: minmax(420px, 52vw) 1fr;
  background:
    radial-gradient(circle at 78% 18%, rgba(199, 160, 90, 0.12), transparent 28%),
    #f6f3ed;
}

.brand-panel {
  padding: 56px;
  color: #f8f4ea;
}

.brand-overlay {
  background:
    linear-gradient(90deg, rgba(13, 16, 20, 0.94), rgba(16, 19, 23, 0.76) 48%, rgba(16, 19, 23, 0.34)),
    linear-gradient(180deg, rgba(13, 16, 20, 0.08), rgba(13, 16, 20, 0.74));
}

.brand-mark {
  border-color: rgba(199, 160, 90, 0.52);
  background: rgba(17, 20, 24, 0.56);
  color: #f4dfaf;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-panel h1 {
  max-width: 520px;
  color: #fffaf0;
  font-weight: 850;
}

.brand-text {
  color: rgba(255, 250, 240, 0.78);
}

.brand-panel .eyebrow {
  color: #d9bd7a;
}

.brand-points div {
  border-top-color: rgba(217, 189, 122, 0.28);
  color: rgba(255, 250, 240, 0.72);
}

.brand-points strong {
  color: #fffaf0;
}

.login-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(246, 243, 237, 0.98)),
    #f6f3ed;
}

.login-stack {
  width: min(100%, 460px);
  gap: 16px;
}

.login-card {
  border-color: rgba(28, 31, 34, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(17, 20, 24, 0.14);
}

.login-card h2,
.panel h2 {
  color: #15191e;
  font-weight: 820;
}

.eyebrow {
  color: var(--accent-strong);
}

label,
.field-title {
  color: #272b30;
}

input,
select,
textarea {
  border-color: #d6d0c4;
  background: #fffdf9;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 160, 90, 0.22);
}

.primary-button {
  border: 1px solid #15191e;
  background:
    linear-gradient(135deg, #171b20, #2c3238),
    #171b20;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.primary-button:hover {
  background:
    linear-gradient(135deg, #0f1216, #242a30),
    #0f1216;
  transform: translateY(-1px);
}

.secondary-button,
.status-button {
  border-color: var(--line-strong);
  background: #fffdf9;
}

.secondary-button:hover,
.status-button:hover {
  border-color: var(--accent);
  background: #fbf7ef;
}

.quiet-button:hover {
  background: rgba(199, 160, 90, 0.12);
  color: #f0d89f;
}

.status-button.confirmee {
  border-color: #15191e;
  background: #15191e;
  color: #fff;
}

.status-button.en_cours {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.status-button.terminee {
  border-color: var(--done);
  background: var(--done);
  color: #fff;
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(245, 243, 238, 0.96)),
    #f5f3ee;
}

.sidebar {
  border-right: 0;
  background:
    linear-gradient(180deg, #11151a, #1c2228),
    #11151a;
  color: #fffaf0;
  box-shadow: 16px 0 46px rgba(17, 20, 24, 0.08);
}

.sidebar .brand-lockup .brand-mark {
  border-color: rgba(217, 189, 122, 0.54);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar .brand-lockup span,
.sidebar .identity span {
  color: rgba(255, 250, 240, 0.6);
}

.sidebar .identity {
  border-color: rgba(217, 189, 122, 0.22);
}

.sidebar .nav-button {
  color: rgba(255, 250, 240, 0.68);
}

.sidebar .nav-button.active,
.sidebar .nav-button:hover {
  background: rgba(199, 160, 90, 0.16);
  color: #fff4d8;
}

.sidebar .quiet-button {
  color: rgba(255, 250, 240, 0.64);
}

.side-metric {
  border-color: rgba(217, 189, 122, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.side-metric span {
  color: rgba(255, 250, 240, 0.58);
}

.side-metric strong {
  color: #fffaf0;
}

.main-content {
  padding: 34px;
}

.topbar h1 {
  color: #15191e;
}

.live-indicator {
  border-color: rgba(199, 160, 90, 0.46);
  background: #fffdf9;
  color: #5d4521;
}

.live-indicator span {
  background: var(--accent);
}

.panel {
  border-color: rgba(28, 31, 34, 0.11);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(17, 20, 24, 0.07);
}

.panel-header {
  background: #fffdf9;
}

.stat {
  border-color: rgba(28, 31, 34, 0.1);
  background: #fffdf9;
}

.stat.accent {
  border-color: rgba(199, 160, 90, 0.52);
  background:
    linear-gradient(135deg, #171b20, #2b3036),
    #171b20;
  color: #fffaf0;
}

.stat.accent span {
  color: rgba(255, 250, 240, 0.62);
}

.client-filter {
  border-color: rgba(28, 31, 34, 0.11);
  background: #fffdf9;
}

.client-filter:hover,
.client-filter.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(199, 160, 90, 0.16);
}

.service-option {
  border-color: rgba(28, 31, 34, 0.11);
  background: #fffdf9;
}

.service-option:has(input:checked) {
  border-color: #15191e;
  background:
    linear-gradient(135deg, #171b20, #2b3036),
    #171b20;
  color: #fffaf0;
}

.service-option:has(input:checked) small {
  color: rgba(255, 250, 240, 0.66);
}

.segmented {
  background: #fffdf9;
}

.segmented label:has(input:checked) {
  background: #15191e;
}

.request-card {
  border-color: rgba(28, 31, 34, 0.11);
  border-left-color: var(--accent);
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(17, 20, 24, 0.06);
}

.time-chip,
.pill.neutral,
.priority.normal {
  background: #edeae3;
  color: #464b51;
}

.pill.nouvelle {
  background: var(--accent-soft);
  color: #6f501f;
}

.note-text {
  background: #f6f3ed;
  color: #3f4348;
}

.chat-thread {
  background: #f6f3ed;
}

.chat-message {
  background: #fffdf9;
}

.chat-message.mine {
  border-color: rgba(199, 160, 90, 0.36);
  background: #fff8ed;
}

.chat-message.admin:not(.mine) {
  background: #f8f1e4;
}

.admin-note {
  border-color: rgba(199, 160, 90, 0.46);
  background: var(--amber-soft);
}

.lane {
  border-color: rgba(28, 31, 34, 0.1);
  background: #f6f3ed;
}

.lane-title span {
  background: #fffdf9;
}

.next-job {
  border-color: rgba(199, 160, 90, 0.46);
  background:
    linear-gradient(135deg, #171b20, #2b3036),
    #171b20;
  color: #fffaf0;
}

.next-job p {
  color: rgba(255, 250, 240, 0.68);
}

.client-table th {
  color: #777166;
}

.toast {
  border-color: rgba(199, 160, 90, 0.38);
  background: #171b20;
  color: #fffaf0;
}

@media (max-width: 1000px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 500px;
  }

  .sidebar {
    border-bottom: 0;
  }

}

@media (max-width: 720px) {
  .brand-panel,
  .login-panel,
  .main-content {
    padding: 22px;
  }

  .login-stack {
    width: 100%;
  }

}
