:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-soft: #f7f7f4;
  --text: #171717;
  --muted: #666666;
  --line: #d9d9d3;
  --ink: #111111;
  --black-soft: #1f1f1f;
  --yellow: #f2c230;
  --yellow-soft: #fff3bf;
  --green: var(--yellow);
  --green-dark: var(--ink);
  --red: #be3d32;
  --focus: rgba(242, 194, 48, 0.32);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.06);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.show-gateway .app-shell {
  display: none;
}

body:not(.show-gateway) .gateway-screen {
  display: none;
}

.gateway-screen {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(42, 42, 42, 0.92)),
    radial-gradient(circle at 72% 18%, rgba(242, 194, 48, 0.28), transparent 32%);
  color: white;
  display: grid;
  gap: 28px;
  min-height: 100vh;
  padding: 42px;
}

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

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

.gateway-brand span {
  color: #d7d7d7;
  font-size: 14px;
  margin-top: 2px;
}

.gateway-hero {
  align-self: end;
  max-width: 820px;
}

.gateway-hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 18px;
}

.gateway-hero p:not(.eyebrow) {
  color: #eeeeee;
  font-size: 20px;
  line-height: 1.35;
  max-width: 720px;
}

.gateway-entry-grid {
  align-self: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: 980px;
}

.gateway-card {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 255px;
  padding: 26px;
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.gateway-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.gateway-card span {
  color: #6b5600;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gateway-card strong {
  font-size: 32px;
  font-weight: 950;
}

.gateway-card p {
  color: #444;
  font-size: 15px;
  line-height: 1.45;
}

.gateway-card em {
  align-self: end;
  background: var(--yellow);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
}

.manager-entry {
  border-top: 6px solid var(--yellow);
}

.employee-entry {
  border-top: 6px solid #ffffff;
}

.employee-mode .app-shell {
  grid-template-columns: 1fr;
}

.employee-mode .sidebar,
.employee-mode .topbar,
.employee-mode .workspace-quickbar {
  display: none;
}

.employee-mode .main {
  padding: 28px;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.sidebar {
  background: var(--ink);
  color: white;
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

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

.brand span {
  color: #bdbdbd;
  font-size: 13px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-label {
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 12px 10px 3px;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8e8e8;
  cursor: pointer;
  min-height: 38px;
  padding: 8px 12px;
  text-align: left;
}

.nav-item:hover {
  background: #272727;
  color: #ffffff;
}

.nav-item.active {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(242, 194, 48, 0.18);
}

.nav-parent.open {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
}

.nav-sub {
  display: grid;
  gap: 4px;
  margin: 0 0 4px 18px;
}

.nav-subitem {
  font-size: 13px;
  min-height: 34px;
  padding-left: 18px;
}

.main {
  overflow-x: hidden;
  padding: 26px 28px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  max-width: 1280px;
}

.current-structure-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 6px 0 0;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.structure-select-field {
  align-items: center;
  display: flex;
  gap: 8px;
}

.structure-select-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.structure-select-field select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  min-width: 190px;
  padding: 8px 10px;
}

.eyebrow {
  color: #6b5600;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 0;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  max-width: 1280px;
}

.metrics-grid.compact {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

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

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  max-width: 1280px;
}

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

.home-hero {
  background: var(--ink);
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  color: white;
  margin-bottom: 16px;
  max-width: 1280px;
  padding: 22px;
}

.structure-entry-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.78fr) minmax(420px, 1.22fr);
  margin-bottom: 16px;
  max-width: 1280px;
  padding: 18px;
}

.structure-entry-panel h2 {
  margin-bottom: 8px;
}

.structure-entry-panel p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.structure-entry-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.structure-entry-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 13px;
  text-align: left;
}

.structure-entry-card:hover,
.structure-entry-card.active {
  border-color: #d5ab20;
  box-shadow: var(--shadow-soft);
}

.structure-entry-card.active {
  background: var(--yellow-soft);
}

.structure-entry-card span,
.structure-entry-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.structure-entry-card strong {
  color: var(--ink);
  font-size: 18px;
}

.structure-entry-card em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.home-hero h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.home-hero p {
  color: #e6e6df;
  margin-bottom: 0;
  max-width: 720px;
}

.home-hero .eyebrow {
  color: var(--yellow);
}

.module-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  max-width: 1280px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 158px;
  padding: 16px;
  text-align: left;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
  outline: 3px solid var(--focus);
}

.module-card span {
  color: #6b5600;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.module-card p {
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.module-card em {
  align-self: end;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.panel-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stack {
  display: grid;
  gap: 10px;
}

.info-row {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.muted {
  color: var(--muted);
}

.ghost-button {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

.ghost-button:hover {
  background: var(--black-soft);
}

.primary-button {
  background: var(--yellow);
  border: 1px solid #d2a91e;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.primary-button:hover {
  filter: brightness(0.97);
}

.icon-button {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.memo-widget {
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 50;
}

.memo-toggle {
  align-items: center;
  background: var(--yellow);
  border: 1px solid #d2a91e;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px 10px 14px;
}

.memo-toggle span {
  font-weight: 900;
}

.memo-toggle strong {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: grid;
  font-size: 13px;
  height: 24px;
  min-width: 24px;
  place-items: center;
  padding: 0 7px;
}

.memo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  display: none;
  max-height: calc(100vh - 86px);
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 56px;
  width: min(420px, calc(100vw - 30px));
}

.memo-widget.open .memo-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

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

.memo-panel-header h2 {
  font-size: 22px;
  margin-bottom: 0;
}

.memo-form {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.memo-form textarea,
.memo-form select {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  width: 100%;
}

.memo-form textarea {
  min-height: 104px;
  padding: 11px 12px;
  resize: vertical;
}

.memo-form select {
  min-height: 42px;
  padding: 8px 10px;
}

.memo-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.memo-list {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  padding: 14px 16px 16px;
}

.memo-empty {
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 16px;
}

.memo-empty strong {
  color: var(--text);
}

.memo-item {
  align-items: flex-start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.memo-item.done {
  opacity: 0.68;
}

.memo-item.done p {
  text-decoration: line-through;
}

.memo-check {
  cursor: pointer;
  display: block;
  margin-top: 3px;
  position: relative;
}

.memo-check input {
  opacity: 0;
  position: absolute;
}

.memo-check span {
  background: white;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: block;
  height: 22px;
  width: 22px;
}

.memo-check input:checked + span {
  background: var(--yellow);
  border-color: var(--ink);
}

.memo-check input:checked + span::after {
  color: var(--ink);
  content: "✓";
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.memo-content {
  display: grid;
  gap: 8px;
}

.memo-item-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.memo-item-head small {
  color: var(--muted);
  font-size: 11px;
}

.memo-badge {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.memo-badge.projet {
  background: #3b3f48;
}

.memo-badge.idee {
  background: #6d5a10;
}

.memo-badge.urgent {
  background: var(--red);
}

.memo-item p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.memo-delete {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding: 0 2px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px minmax(180px, 220px) minmax(160px, 190px);
  gap: 10px;
  margin-bottom: 14px;
  max-width: 1280px;
}

.toolbar.team-toolbar {
  grid-template-columns: minmax(220px, 1fr) 140px minmax(180px, 220px) minmax(160px, 190px) minmax(210px, 250px);
}

.toolbar.documents-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(170px, 220px);
}

.toolbar.aci-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(170px, 220px);
}

.toolbar input,
.toolbar select,
.wide-input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.toolbar input:focus,
.toolbar select:focus,
.wide-input:focus {
  border-color: var(--ink);
}

.wide-input {
  margin-bottom: 14px;
  width: 100%;
}

.employee-modal {
  align-items: center;
  background: rgba(16, 18, 23, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 90;
}

.employee-modal.open {
  display: flex;
}

.employee-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 1120px;
  padding: 18px;
  width: min(1120px, calc(100vw - 48px));
}

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

.employee-dialog-header h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.employee-form {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding-top: 14px;
}

.employee-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.employee-form legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 0 8px;
  text-transform: uppercase;
}

.employee-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-form-field {
  display: grid;
  gap: 6px;
}

.employee-form-field.wide {
  grid-column: 1 / -1;
}

.employee-form-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-form-field input,
.employee-form-field select,
.employee-form-field textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.employee-form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 2px;
}

.employee-form-status {
  min-height: 20px;
}

.insertion-path {
  display: grid;
  gap: 16px;
}

.insertion-hero-panel {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.insertion-hero-panel span,
.insertion-field span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.insertion-hero-panel span {
  color: var(--yellow);
}

.insertion-hero-panel strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.insertion-hero-panel p {
  color: #d8d8d8;
  margin: 5px 0 0;
}

.insertion-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insertion-field {
  display: grid;
  gap: 6px;
}

.insertion-field.wide {
  grid-column: 1 / -1;
}

.insertion-field input,
.insertion-field select,
.insertion-field textarea,
.insertion-table input,
.insertion-table select,
.insertion-table textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.insertion-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.insertion-section-head h3 {
  margin: 0;
}

.insertion-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.insertion-table {
  min-width: 920px;
}

.insertion-table th {
  background: var(--surface-soft);
  position: sticky;
  top: 0;
}

.insertion-table td {
  vertical-align: top;
}

.compact-button {
  min-height: 34px;
  padding: 6px 9px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.35fr);
  gap: 18px;
  max-width: 1280px;
}

.list-panel,
.detail-panel {
  min-height: 610px;
}

.member-list {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.member-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.member-card:hover,
.member-card.selected {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.member-card:hover {
  transform: translateY(-1px);
}

.member-card strong,
.member-card span {
  display: block;
}

.member-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.badge {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  padding: 3px 8px;
}

.badge.warn {
  background: var(--yellow-soft);
  border-color: #e0bb38;
  color: #3f3300;
}

.badge.alert {
  background: #fde7e2;
  border-color: #ecaaa1;
  color: var(--red);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-header .badges {
  align-items: flex-start;
  justify-content: flex-end;
}

.detail-header .badge {
  display: inline-flex;
  line-height: 1.2;
  min-height: 24px;
  white-space: nowrap;
}

.detail-header h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.field {
  background: var(--surface-soft);
  border: 1px solid #ecece7;
  border-radius: 8px;
  padding: 10px;
}

.field span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.section-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tab-button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  padding: 10px 6px;
}

.tab-button.active {
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.table {
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.info-section {
  margin-bottom: 18px;
}

.info-section h3 {
  border-left: 4px solid var(--yellow);
  padding-left: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.info-field {
  background: var(--surface-soft);
  border: 1px solid #ecece7;
  border-radius: 8px;
  padding: 10px;
}

.info-field span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}

.info-field strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.doc-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.doc-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

.document-workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.2fr);
}

.document-list,
.compact-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.document-row,
.compact-row {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px 12px;
}

.document-row {
  color: inherit;
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
  width: 100%;
}

.document-row:hover,
.document-row.selected {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.document-row strong,
.document-row span,
.compact-row strong,
.compact-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-row span,
.compact-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.document-action {
  justify-self: start;
  white-space: nowrap;
}

.document-preview {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 620px;
  padding: 14px;
}

.payroll-placeholder {
  display: none;
}

.payroll-hero {
  align-items: center;
  background: var(--ink);
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
  max-width: 1280px;
  padding: 22px;
}

.payroll-hero h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.payroll-hero p {
  color: #e6e6df;
  margin-bottom: 0;
  max-width: 760px;
}

.payroll-hero .eyebrow {
  color: var(--yellow);
}

.payroll-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.payroll-actions select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  min-width: 210px;
  padding: 9px 12px;
}

.payroll-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.45fr);
  max-width: 1280px;
}

.payroll-list-panel,
.payroll-detail-panel {
  min-width: 0;
}

.payroll-tab {
  display: none;
}

.payroll-tab.active {
  display: block;
}

.pay-slip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

.prototype-ribbon {
  background: #fff3bf;
  border-bottom: 1px solid #e2c65d;
  color: #6b5600;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  text-align: center;
  text-transform: uppercase;
}

.pay-slip-header {
  align-items: center;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.pay-slip-brand {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.pay-slip-header span,
.pay-slip-header small {
  display: block;
}

.pay-slip-period {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  min-width: 130px;
  padding: 12px;
  text-align: center;
}

.pay-slip-period span {
  color: #cfcfcf;
  font-size: 12px;
  text-transform: uppercase;
}

.pay-slip-identities {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.pay-slip-identities section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pay-slip-lines {
  margin: 0 18px 18px;
  width: calc(100% - 36px);
}

.pay-slip-totals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 18px;
}

.pay-slip-totals div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pay-slip-totals span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.pay-slip-notice {
  background: #fff3bf;
  border-top: 1px solid #e2c65d;
  color: #6b5600;
  font-weight: 800;
  margin: 0;
  padding: 12px 18px;
}

.payroll-variable-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.inclusion-hero {
  align-items: center;
  background: linear-gradient(135deg, #111111 0%, #303030 100%);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 26px;
}

.inclusion-hero h2 {
  font-size: 34px;
  margin: 0 0 8px;
}

.inclusion-hero p {
  max-width: 760px;
}

.inclusion-actions,
.inclusion-config-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.inclusion-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.token-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.token-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.token-field input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.ghost-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 12px;
  text-decoration: none;
}

.inclusion-sync-result {
  min-height: 220px;
}

.inclusion-empty {
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.inclusion-empty strong,
.inclusion-empty span {
  display: block;
}

.inclusion-empty span {
  color: var(--muted);
}

.payroll-save-bar {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px;
}

.payroll-monthly-recap {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.payroll-recap-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 12px 0;
}

.payroll-recap-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.payroll-recap-actions label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.payroll-recap-actions label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payroll-recap-actions select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  min-width: 170px;
  padding: 8px 10px;
}

.payroll-recap-metrics .metric {
  box-shadow: none;
  padding: 12px;
}

.payroll-recap-metrics .metric strong {
  font-size: 20px;
}

.payroll-recap-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 360px;
  overflow: auto;
}

.payroll-variable-modal {
  align-items: center;
  background: rgba(16, 18, 23, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.payroll-variable-modal.open {
  display: flex;
}

.payroll-variable-dialog {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 1180px;
  padding: 18px;
  width: min(1180px, calc(100vw - 48px));
}

.payroll-variable-dialog-header,
.payroll-variable-dialog-toolbar,
.payroll-dialog-period {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.payroll-variable-dialog-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.payroll-variable-dialog-header h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.payroll-variable-dialog-toolbar {
  padding: 12px 0;
}

.payroll-dialog-period {
  justify-content: flex-start;
}

.payroll-dialog-period span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payroll-dialog-period select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  min-width: 170px;
  padding: 8px 10px;
}

.payroll-variable-dialog-table {
  max-height: calc(100vh - 260px);
}

.payroll-recap-table tbody tr {
  cursor: pointer;
}

.payroll-recap-table tbody tr:hover,
.payroll-recap-table tbody tr.selected-row {
  background: var(--yellow-soft);
}

.payroll-recap-table tbody tr.dirty-row {
  background: #fff8d6;
}

.payroll-recap-table th {
  background: var(--surface-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}

.payroll-entry-table th,
.payroll-entry-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.payroll-monthly-input {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 128px;
}

.payroll-monthly-input input,
.payroll-monthly-select,
.payroll-variable-card select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 8px;
}

.payroll-monthly-input input {
  width: 82px;
}

.payroll-monthly-select {
  background: white;
  min-width: 118px;
}

.payroll-variable-card select {
  background: white;
  width: 100%;
}

.payroll-monthly-input.expected-renewal input {
  border-color: var(--yellow);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.payroll-monthly-input input:focus,
.payroll-monthly-select:focus,
.payroll-variable-card select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(246, 201, 76, 0.28);
  outline: none;
}

.payroll-monthly-input small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.payroll-save-bar strong,
.payroll-save-bar span {
  display: block;
}

.payroll-save-bar span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.payroll-save-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.payroll-save-actions select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
}

.payroll-variable-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.payroll-variable-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.payroll-variable-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
  padding: 10px;
  width: 100%;
}

.payroll-note-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.payroll-note-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payroll-note-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.payroll-save-status {
  min-height: 20px;
}

.payroll-control-list,
.payroll-control-focus {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

@media print {
  body.print-payroll-slip {
    background: white;
  }

  body.print-payroll-slip .sidebar,
  body.print-payroll-slip .topbar,
  body.print-payroll-slip .payroll-hero,
  body.print-payroll-slip .payroll-list-panel,
  body.print-payroll-slip .section-tabs,
  body.print-payroll-slip .payroll-tab:not(.active),
  body.print-payroll-slip .payroll-detail-panel > .section-tabs {
    display: none !important;
  }

  body.print-payroll-slip .app-shell,
  body.print-payroll-slip .main,
  body.print-payroll-slip .payroll-workspace,
  body.print-payroll-slip .payroll-detail-panel {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  body.print-payroll-slip .payroll-detail-panel {
    border: 0;
    box-shadow: none;
  }

  body.print-payroll-slip .pay-slip {
    border: 1px solid #999;
    border-radius: 0;
    page-break-inside: avoid;
  }
}

.document-preview.empty-state {
  min-height: 620px;
}

.preview-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.preview-header h3 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-meta span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 9px;
}

.file-frame {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 490px;
  width: 100%;
}

.file-placeholder {
  align-items: center;
  background: white;
  border: 1px dashed #b8b8af;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 420px;
  padding: 28px;
  place-items: center;
  text-align: center;
}

.primary-link {
  background: var(--yellow);
  border: 1px solid #d2a91e;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.primary-link:hover {
  filter: brightness(0.97);
}

.compact-link {
  padding: 8px 10px;
  white-space: nowrap;
}

.employee-documents {
  display: grid;
  gap: 8px;
}

.employee-document-card {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.employee-document-card strong,
.employee-document-card span {
  display: block;
  overflow-wrap: anywhere;
}

.employee-document-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.aci-hero {
  align-items: center;
  background: linear-gradient(135deg, #151515 0%, #242424 68%, #3a320f 100%);
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  max-width: 1280px;
  padding: 22px;
}

.aci-hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.aci-hero p {
  color: #e6e6df;
  margin-bottom: 0;
  max-width: 760px;
}

.aci-hero .eyebrow {
  color: var(--yellow);
}

.document-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.doc-link.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.payroll-documents-panel {
  background: #fffdf2;
  border: 1px solid #ead98e;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px;
}

.payroll-download-list {
  display: grid;
  gap: 8px;
}

.payroll-download-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.payroll-download-card strong,
.payroll-download-card span {
  display: block;
  overflow-wrap: anywhere;
}

.payroll-download-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.employee-vault-wide {
  grid-column: 1 / -1;
}

.employee-vault-selector {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.employee-vault-selector span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.employee-vault-selector select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.aci-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.aci-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(460px, 1.45fr);
  margin-bottom: 18px;
  max-width: 1280px;
}

.aci-progress {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.aci-progress > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-track {
  background: #e7e7df;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-track span {
  background: var(--yellow);
  display: block;
  height: 100%;
}

.aci-focus-panel {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
}

.aci-focus-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-height: 162px;
  padding: 15px;
}

.aci-focus-card.alert {
  background: #fff8d8;
  border-color: #d7aa1d;
}

.aci-focus-card.action {
  border-color: var(--ink);
  box-shadow: inset 0 5px 0 var(--yellow), var(--shadow-soft);
}

.aci-focus-card > span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.aci-focus-card h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.aci-focus-card ol {
  margin: 0;
  padding-left: 20px;
}

.aci-focus-card li {
  line-height: 1.35;
  margin-bottom: 8px;
}

.aci-focus-card .tag-stack {
  gap: 8px;
}

.ai-summary {
  background: #fff8d8;
  border: 1px solid #ead176;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  line-height: 1.5;
  padding: 14px;
}

.three-columns {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aci-detail-columns {
  margin-bottom: 18px;
}

.mini-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.mini-panel ul {
  margin: 0;
  padding-left: 18px;
}

.mini-panel li {
  margin-bottom: 7px;
}

.tag-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 12px;
}

.timeline-item span,
.timeline-item small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.timeline-item strong {
  display: block;
  margin: 4px 0;
}

.timeline-item p {
  margin-bottom: 6px;
}

.aci-report-panel {
  margin-top: 18px;
  max-width: 1280px;
}

.aci-report-preview {
  display: grid;
  gap: 14px;
}

.report-headline {
  align-items: flex-start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.report-headline strong,
.report-headline span {
  display: block;
}

.report-headline > div:first-child span {
  color: var(--muted);
  margin-top: 4px;
}

.aci-report-table td {
  font-size: 13px;
}

.compact-row {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-label {
    grid-column: 1 / -1;
  }

  .toolbar,
    .content-grid,
    .two-columns,
    .document-workspace,
    .aci-workspace,
    .aci-focus-panel,
    .three-columns,
    .structure-entry-panel,
    .structure-entry-grid,
    .module-grid,
    .metrics-grid {
    grid-template-columns: 1fr;
  }

  .aci-hero,
  .topbar,
  .report-headline {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Ancienne base graphique conservée */
:root {
  --bg: #eeeeea;
  --surface: #ffffff;
  --surface-soft: #f6f6f1;
  --surface-raised: #ffffff;
  --text: #171717;
  --muted: #656872;
  --line: #deded7;
  --ink: #101113;
  --black-soft: #202226;
  --yellow: #f4c531;
  --yellow-soft: #fff4c8;
  --red: #b94034;
  --focus: rgba(244, 197, 49, 0.34);
  --shadow: 0 22px 55px rgba(16, 17, 19, 0.10);
  --shadow-soft: 0 10px 26px rgba(16, 17, 19, 0.07);
  --shadow-tight: 0 6px 16px rgba(16, 17, 19, 0.08);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

body {
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.035) 0 1px, transparent 1px 100%) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(16, 17, 19, 0.025) 0 1px, transparent 1px 100%) 0 0 / 28px 28px,
    var(--bg);
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  background: var(--ink);
  border-right: 1px solid #2d2f34;
  box-shadow: 18px 0 42px rgba(16, 17, 19, 0.18);
  padding: 18px 14px;
}

.brand {
  background: #181a1e;
  border: 1px solid #2b2d32;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 12px;
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(244, 197, 49, 0.22);
}

.brand strong {
  font-size: 17px;
}

.brand span {
  color: #d4d5d8;
}

.nav {
  gap: 5px;
}

.nav-label {
  color: #9ea1a9;
  font-size: 10px;
  margin: 18px 10px 6px;
}

.nav-item {
  align-items: center;
  border: 1px solid transparent;
  color: #f1f1ef;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.nav-item::before {
  background: #45484f;
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.nav-item:hover {
  background: #1f2227;
  border-color: #30333a;
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--yellow);
  border-color: #f5d263;
  box-shadow: 0 14px 34px rgba(244, 197, 49, 0.22);
  color: var(--ink);
}

.nav-item.active::before {
  background: var(--ink);
}

.main {
  padding: 24px 28px 46px;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(222, 222, 215, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
  padding: 16px 18px;
}

.eyebrow {
  color: #7a6100;
  font-size: 11px;
  font-weight: 900;
}

h1 {
  font-size: 32px;
  font-weight: 900;
}

h2 {
  font-size: 19px;
  font-weight: 850;
}

h3 {
  font-weight: 850;
}

.home-hero,
.aci-hero {
  border: 1px solid #25272c;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(16, 17, 19, 0.18);
  overflow: hidden;
  position: relative;
}

.home-hero::before,
.aci-hero::before {
  background: var(--yellow);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.home-hero::after,
.aci-hero::after {
  background: rgba(244, 197, 49, 0.16);
  content: "";
  height: 92px;
  position: absolute;
  right: 28px;
  top: -18px;
  transform: rotate(-12deg);
  width: 190px;
}

.home-hero {
  background: #101113;
  padding: 25px 30px;
}

.home-hero h2,
.aci-hero h2 {
  font-size: 32px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.home-hero p,
.aci-hero p,
.home-hero .eyebrow,
.aci-hero .eyebrow,
.aci-hero-actions {
  position: relative;
  z-index: 1;
}

.module-grid,
.metrics-grid,
.two-columns,
.content-grid,
.aci-workspace,
.aci-report-panel {
  max-width: 1360px;
}

.module-card,
.metric,
.panel,
.member-card,
.document-row,
.compact-row,
.document-preview,
.field,
.info-field,
.mini-panel,
.timeline-item,
.report-headline {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 20px;
}

.module-card {
  border-left: 0;
  box-shadow: var(--shadow-soft);
  min-height: 172px;
  padding: 18px;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.module-card::before {
  background: var(--yellow);
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 0;
}

.module-card:hover,
.module-card:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.module-card strong {
  font-size: 21px;
}

.module-card p {
  color: #565a63;
}

.metric {
  border-top: 0;
  padding: 18px;
  position: relative;
}

.metric::before {
  background: var(--yellow);
  border-radius: 8px 8px 0 0;
  content: "";
  height: 5px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.metric span {
  font-weight: 750;
}

.metric strong {
  font-size: 31px;
  font-weight: 900;
}

.ghost-button,
.primary-button,
.primary-link {
  border-radius: 8px;
  min-height: 43px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.ghost-button {
  box-shadow: var(--shadow-tight);
}

.ghost-button:hover,
.primary-button:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

.primary-button,
.primary-link {
  box-shadow: 0 12px 26px rgba(244, 197, 49, 0.22);
}

.toolbar {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(222, 222, 215, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.toolbar input,
.toolbar select,
.wide-input {
  border-color: #cacbc4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-height: 44px;
}

.member-list,
.document-list,
.compact-list {
  scrollbar-color: var(--yellow) #e9e9e2;
}

.member-card,
.document-row {
  box-shadow: none;
}

.member-card:hover,
.member-card.selected,
.document-row:hover,
.document-row.selected {
  border-color: var(--ink);
  box-shadow: inset 5px 0 0 var(--yellow), var(--shadow-tight);
}

.badge {
  background: #f1f1eb;
  font-weight: 750;
}

.badge.warn {
  background: var(--yellow-soft);
}

.section-tabs {
  gap: 4px;
}

.tab-button {
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  padding: 11px 10px;
}

.tab-button.active {
  background: var(--yellow-soft);
  color: var(--ink);
}

.table th {
  background: var(--surface-soft);
  color: #5d6068;
  font-weight: 900;
}

.table td {
  background: white;
}

.file-frame,
.file-placeholder {
  box-shadow: inset 0 0 0 1px rgba(16, 17, 19, 0.03);
}

.aci-hero {
  background: #101113;
  padding: 25px 30px;
}

.ai-summary {
  background: #fff8dc;
  box-shadow: var(--shadow-tight);
}

.progress-track {
  background: #dedfd8;
}

.empty-state {
  background: var(--surface-soft);
  border: 1px dashed #c6c7bf;
  border-radius: 8px;
}

.employee-portal-hero {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  max-width: 1280px;
  padding: 26px;
}

.employee-portal-hero h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.employee-portal-hero p:not(.eyebrow) {
  color: #e7e7e7;
  max-width: 760px;
}

.employee-portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  max-width: 1280px;
}

.employee-vault-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  max-width: 1280px;
  padding: 18px;
}

.employee-vault-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-vault-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.employee-vault-card span {
  color: #6b5600;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-vault-card strong {
  font-size: 17px;
}

.employee-vault-card p {
  color: var(--muted);
  font-size: 13px;
}

.employee-signature-panel,
.manager-signature-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0 0 18px;
  max-width: 1280px;
  padding: 18px;
}

.manager-signature-panel {
  margin-top: 16px;
}

.signature-workflow {
  background: #fff8d8;
  border: 1px solid #e3c74d;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 14px;
}

.signature-workflow[hidden] {
  display: none;
}

.signature-workflow-header,
.signature-workflow-actions,
.signature-selected-source {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.signature-workflow-header strong,
.signature-selected-source strong {
  display: block;
}

.signature-workflow-header span,
.signature-selected-source span,
.signature-selected-source small,
.signature-helper {
  color: var(--muted);
  font-size: 13px;
}

.signature-workflow-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.signature-workflow-grid label,
.signature-upload-zone {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.signature-workflow-grid input,
.signature-workflow-grid select,
.signature-upload-zone input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  text-transform: none;
}

.signature-document-results {
  display: grid;
  gap: 8px;
}

.signature-document-result {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
}

.signature-document-result:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}

.signature-document-result span {
  color: var(--muted);
  font-size: 12px;
}

.signature-selected-source {
  background: white;
  border: 1px dashed #c8aa22;
  border-radius: 8px;
  padding: 12px;
}

.employee-signature-list,
.manager-signature-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.employee-signature-card,
.manager-signature-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 0.9fr) auto;
  padding: 14px;
}

.employee-signature-card.signed {
  border-left-color: #1f7a4d;
}

.employee-signature-card span,
.manager-signature-card span {
  color: #6b5600;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-signature-card strong,
.manager-signature-card strong {
  display: block;
  margin-top: 4px;
}

.employee-signature-card p,
.manager-signature-card p,
.employee-signature-meta small,
.employee-signature-empty span {
  color: var(--muted);
  font-size: 13px;
}

.employee-signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.signature-rule {
  margin-top: 12px;
}

.signature-progress {
  display: grid;
  gap: 6px;
}

.signature-progress span {
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 10px;
  text-transform: none;
}

.signature-progress span.done {
  background: #e8f7ef;
  color: #14623b;
}

.employee-signature-empty {
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

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

.employee-ai-preview {
  background: var(--yellow-soft);
  border: 1px solid #e3c74d;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.employee-ai-preview span {
  color: #4f4a2b;
  font-size: 13px;
}

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

.employee-request-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.employee-request-card div,
.employee-request-card footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.employee-request-card span,
.employee-request-card footer {
  color: var(--muted);
  font-size: 13px;
}

.employee-request-card em {
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.employee-message-panel {
  margin-top: 18px;
  max-width: 1280px;
}

.employee-message-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
}

.agents-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(35, 35, 35, 0.96)),
    radial-gradient(circle at 84% 18%, rgba(242, 194, 48, 0.35), transparent 32%);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  max-width: 1280px;
  padding: 28px;
}

.agents-hero h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.agents-hero p:not(.eyebrow) {
  color: #eeeeee;
  max-width: 820px;
}

.agents-principle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-width: 260px;
  padding: 18px;
}

.agents-principle span {
  color: var(--yellow);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.agents-principle strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.agent-workflow {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  max-width: 1280px;
}

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

.agent-workflow span {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  margin-bottom: 12px;
  width: 30px;
}

.agent-workflow strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.agent-workflow p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.assistant-offer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  max-width: 1280px;
}

.assistant-offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.assistant-offer-card.featured {
  border-color: #c7a028;
  box-shadow: inset 0 5px 0 var(--yellow), var(--shadow-soft);
}

.assistant-offer-card.premium {
  background: linear-gradient(180deg, #ffffff, #fff8d8);
  border-color: #a98712;
  box-shadow: inset 0 5px 0 #111111, var(--shadow-soft);
}

.assistant-offer-card > span {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 7px 10px;
}

.assistant-offer-card h3 {
  font-size: 28px;
  margin-bottom: 4px;
}

.assistant-offer-card strong {
  display: block;
  margin-bottom: 10px;
}

.assistant-offer-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.assistant-offer-card ul {
  margin: 0;
  padding-left: 18px;
}

.assistant-offer-card li {
  margin-bottom: 7px;
}

.business-model-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  max-width: 1280px;
}

.business-model-strip article {
  background: #111111;
  border: 1px solid rgba(242, 194, 48, 0.28);
  border-radius: 8px;
  color: #ffffff;
  padding: 16px;
}

.business-model-strip span {
  color: var(--yellow);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.business-model-strip strong {
  display: block;
  font-size: 19px;
  margin-bottom: 7px;
}

.business-model-strip p {
  color: #d8d8d8;
  font-size: 13px;
  line-height: 1.45;
}

.agent-integration-lab {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  max-width: 1280px;
  padding: 20px;
}

.agent-integration-lab .panel-heading {
  align-items: flex-start;
  gap: 18px;
}

.agent-launcher {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-launcher select,
.agent-task-input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.agent-launcher select {
  min-width: 230px;
  padding: 11px 12px;
}

.agent-task-input {
  font: inherit;
  line-height: 1.45;
  margin: 14px 0;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

.agent-result {
  background: #fafafa;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}

.agent-result-head,
.agent-result-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
  justify-content: space-between;
}

.agent-result ol {
  margin: 10px 0 12px;
  padding-left: 22px;
}

.agent-result li {
  margin-bottom: 6px;
}

.tool-stack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tool-stack-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.tool-stack-card.selectionne {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.6);
}

.tool-stack-card span,
.tool-stack-card small {
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-stack-card strong {
  display: block;
  margin: 6px 0;
}

.tool-stack-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.agent-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1280px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 18px;
}

.agent-card.priority {
  border-color: #c7a028;
  box-shadow: inset 0 5px 0 var(--yellow), var(--shadow-soft);
}

.agent-card-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.agent-pill,
.agent-risk {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.agent-pill {
  background: var(--yellow);
  color: var(--ink);
}

.agent-risk {
  background: var(--surface-soft);
  color: var(--muted);
}

.agent-risk.high {
  background: #fff3bf;
  color: #6b5600;
}

.agent-risk.critical {
  background: #ffe2df;
  color: var(--red);
}

.agent-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.agent-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.agent-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.agent-card li {
  line-height: 1.4;
  margin-bottom: 7px;
}

.agent-card footer {
  background: var(--surface-soft);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: auto;
  padding: 12px;
}

@media (max-width: 980px) {
  .gateway-screen {
    padding: 24px;
  }

  .gateway-entry-grid,
  .employee-portal-grid,
  .employee-message-layout,
  .employee-vault-grid,
  .agents-hero,
  .agent-workflow,
  .assistant-offer-grid,
  .consulting-hero,
  .consulting-offer-grid,
  .consulting-method-panel,
  .landing-consulting-grid,
  .business-model-strip,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .employee-portal-hero,
  .agents-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    height: auto;
    position: static;
    width: 100%;
  }

  .brand {
    margin-bottom: 16px;
  }

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

  .nav-label {
    grid-column: 1 / -1;
  }

  .nav-item {
    min-height: 42px;
  }

  .main {
    padding: 18px 16px 34px;
    width: 100%;
  }

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

  .topbar-actions,
  .structure-select-field {
    align-items: stretch;
    flex-direction: column;
  }

  .structure-entry-panel,
  .structure-entry-grid {
    grid-template-columns: 1fr;
  }

  .topbar .ghost-button,
  .structure-select-field select {
    width: 100%;
  }

  .home-hero h2,
  .aci-hero h2 {
    font-size: 28px;
  }

  .home-hero,
  .aci-hero {
    padding: 22px;
  }

  .aci-hero-actions {
    justify-content: stretch;
  }

  .aci-hero-actions button {
    width: 100%;
  }

  .nav-item:hover {
    transform: none;
  }
}

/* Charte Sensia */
:root {
  --bg: #edf4f2;
  --surface: #ffffff;
  --surface-soft: #f5faf8;
  --text: #102024;
  --muted: #647276;
  --line: #d5e2df;
  --ink: #0d2429;
  --black-soft: #17343b;
  --yellow: #4fcdbb;
  --yellow-soft: #dcf7f2;
  --green: #4fcdbb;
  --green-dark: #127263;
  --red: #b9463d;
  --focus: rgba(79, 205, 187, 0.34);
  --sensia-blue: #22526a;
  --sensia-blue-soft: #e7f0f2;
  --sensia-lime: #d8f99a;
  --shadow: 0 18px 44px rgba(13, 36, 41, 0.11);
  --shadow-soft: 0 10px 28px rgba(13, 36, 41, 0.08);
  --shadow-tight: 0 8px 18px rgba(13, 36, 41, 0.08);
}

body {
  background:
    linear-gradient(90deg, rgba(13, 36, 41, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 36, 41, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
}

.sidebar {
  background: #0b171b;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand-mark {
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(79, 205, 187, 0.28);
  color: #071416;
  font-size: 24px;
}

.brand strong {
  letter-spacing: 0;
}

.brand span {
  color: #aabbbf;
}

.nav-label {
  color: #8ea2a6;
}

.nav-item {
  color: #d9e4e6;
}

.nav-item::before {
  background: #42545a;
}

.nav-item:hover {
  background: rgba(79, 205, 187, 0.1);
}

.nav-item.active {
  background: var(--yellow);
  color: #071416;
  box-shadow: 0 14px 32px rgba(79, 205, 187, 0.22);
}

.nav-parent.open {
  background: rgba(79, 205, 187, 0.12);
  border-color: rgba(79, 205, 187, 0.2);
  color: #ffffff;
  font-weight: 800;
}

.nav-sub {
  border-left: 1px solid rgba(79, 205, 187, 0.2);
  display: grid;
  gap: 4px;
  margin: 0 0 4px 18px;
  padding-left: 8px;
}

.nav-subitem {
  font-size: 13px;
  min-height: 34px;
  padding-left: 12px;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.eyebrow,
.module-card span {
  color: var(--green-dark);
}

h1,
h2,
h3 {
  color: var(--text);
}

.home-hero,
.aci-hero,
.about-hero {
  background:
    linear-gradient(135deg, rgba(79, 205, 187, 0.14), transparent 42%),
    #0d2429;
  border-color: rgba(79, 205, 187, 0.3);
  color: white;
}

.home-hero::before,
.aci-hero::before,
.about-hero::before {
  background: var(--yellow);
}

.home-hero::after,
.aci-hero::after,
.about-hero::after {
  background: rgba(216, 249, 154, 0.14);
}

.home-hero h2,
.aci-hero h2,
.about-hero h2 {
  color: white;
}

.home-hero p,
.aci-hero p,
.about-hero p {
  color: #d8e7e9;
}

.home-hero .eyebrow,
.aci-hero .eyebrow,
.about-hero .eyebrow {
  color: var(--sensia-lime);
}

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

.module-card {
  border-left: 0;
  border-top: 4px solid var(--yellow);
}

.module-card:hover,
.module-card:focus-visible {
  border-color: rgba(34, 82, 106, 0.42);
  box-shadow: 0 18px 40px rgba(13, 36, 41, 0.13);
}

.metric::before {
  background: linear-gradient(90deg, var(--yellow), var(--sensia-lime));
}

.ghost-button {
  background: #0d2429;
  border-color: #0d2429;
  color: white;
}

.ghost-button:hover {
  background: #17343b;
}

.primary-button,
.primary-link {
  background: var(--yellow);
  border-color: #35aa9a;
  color: #071416;
  box-shadow: 0 12px 26px rgba(79, 205, 187, 0.25);
}

.panel,
.toolbar,
.metric,
.module-card,
.info-row,
.member-card,
.document-row {
  background: rgba(255, 255, 255, 0.94);
}

.member-card:hover,
.member-card.selected,
.document-row:hover,
.document-row.selected {
  border-color: var(--green-dark);
  box-shadow: inset 5px 0 0 var(--yellow), var(--shadow-tight);
}

.tab-button.active,
.badge.warn,
.ai-summary {
  background: var(--yellow-soft);
}

.about-hero {
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(13, 36, 41, 0.16);
  margin-bottom: 18px;
  max-width: 1360px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.about-hero h2 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 12px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.about-hero p {
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  max-width: 1360px;
}

.about-card {
  display: grid;
  gap: 8px;
}

.about-card h2 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 0;
}

.about-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.primary-about-card {
  border-top: 4px solid var(--yellow);
}

.benefit-panel {
  max-width: 1360px;
}

.benefit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.benefit-grid article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 15px;
}

.benefit-grid strong {
  color: var(--ink);
  font-size: 17px;
}

.benefit-grid span {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .module-grid,
  .benefit-grid,
  .inclusion-workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .module-grid,
  .benefit-grid,
  .about-grid,
  .consulting-offer-grid,
  .consulting-method-panel,
  .inclusion-workspace {
    grid-template-columns: 1fr;
  }

  .inclusion-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-hero h2 {
    font-size: 28px;
  }

  .employee-modal {
    padding: 10px;
  }

  .employee-dialog {
    max-height: calc(100vh - 20px);
    width: calc(100vw - 20px);
  }

  .employee-dialog-header,
  .employee-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-form-grid,
  .toolbar.team-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Ergonomie Sensia - architecture de navigation */
.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.nav-item {
  align-content: center;
  display: grid;
  gap: 2px;
  min-height: 50px;
}

.nav-item span,
.nav-item small {
  display: block;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.nav-item span {
  font-weight: 850;
}

.nav-item small {
  color: rgba(217, 228, 230, 0.66);
  font-size: 11px;
  font-weight: 650;
}

.nav-item.active small {
  color: rgba(7, 20, 22, 0.72);
}

.assistant-choice-wrap {
  margin: 0 0 14px;
  position: relative;
  z-index: 12;
}

.nav-item.assistant-choice {
  background:
    linear-gradient(135deg, var(--yellow), #ffe28a);
  border: 1px solid #f5d263;
  box-shadow: 0 14px 30px rgba(242, 194, 48, 0.24);
  color: var(--ink);
  min-height: 64px;
}

.nav-item.assistant-choice::before {
  background: var(--ink);
  height: 11px;
  width: 11px;
}

.nav-item.assistant-choice:hover {
  background:
    linear-gradient(135deg, #ffd54c, #fff0ad);
  border-color: #ffe28a;
  color: var(--ink);
}

.nav-item.assistant-choice small,
.nav-item.assistant-choice.active small {
  color: rgba(7, 20, 22, 0.72);
}

.nav-item.assistant-choice.active {
  outline: 2px solid rgba(255, 255, 255, 0.2);
}

.assistant-choice-menu {
  background: #101417;
  border: 1px solid rgba(242, 194, 48, 0.45);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 8px;
  left: 0;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  transform: translateY(-6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.assistant-choice-wrap:hover .assistant-choice-menu,
.assistant-choice-wrap:focus-within .assistant-choice-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.assistant-choice-option {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 3px;
  padding: 11px 12px;
  text-align: left;
}

.assistant-choice-option span {
  color: #d9c46a;
  font-size: 11px;
  font-weight: 800;
}

.assistant-choice-option:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.assistant-choice-option:hover span {
  color: rgba(7, 20, 22, 0.72);
}

.assistant-choice-option.premium {
  border-color: rgba(242, 194, 48, 0.35);
}

.consulting-nav-item {
  border-color: rgba(242, 194, 48, 0.45);
}

.consulting-nav-item span::after {
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  content: "nouveau";
  display: inline-block;
  font-size: 9px;
  font-weight: 950;
  margin-left: 8px;
  padding: 3px 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

.assistant-offer-card.selected {
  border-color: var(--ink);
  box-shadow: inset 0 5px 0 var(--ink), 0 18px 40px rgba(242, 194, 48, 0.26);
}

.consulting-hero {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(38, 38, 38, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(242, 194, 48, 0.30), transparent 28%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 22px;
  padding: 34px;
}

.consulting-hero h2 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 16px;
  max-width: 860px;
}

.consulting-hero p {
  color: #f0f0f0;
  font-size: 18px;
  line-height: 1.42;
  max-width: 820px;
}

.consulting-hero-card {
  align-self: stretch;
  background: #ffffff;
  border-left: 7px solid var(--yellow);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  padding: 22px;
}

.consulting-hero-card span,
.consulting-offer-card span {
  color: #6b5600;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consulting-hero-card strong {
  font-size: 28px;
  font-weight: 950;
  line-height: 1.05;
}

.consulting-hero-card p {
  color: #3f3f3f;
  font-size: 15px;
}

.consulting-offer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.consulting-offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  padding: 22px;
}

.consulting-offer-card.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.consulting-offer-card.primary p,
.consulting-offer-card.primary li {
  color: #f0f0f0;
}

.consulting-offer-card h3 {
  font-size: 23px;
  line-height: 1.08;
  margin: 0;
}

.consulting-offer-card p,
.consulting-offer-card li {
  color: #424242;
  line-height: 1.45;
}

.consulting-offer-card ul {
  margin: 0;
  padding-left: 18px;
}

.consulting-method-panel {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.consulting-method-panel h2 {
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 10px;
}

.consulting-steps {
  display: grid;
  gap: 10px;
}

.consulting-steps div {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 140px 1fr;
  padding: 13px;
}

.consulting-steps strong {
  color: var(--ink);
  font-size: 16px;
}

.consulting-steps span {
  color: #4f4f4f;
}

.nav-subitem {
  display: block;
  min-height: 34px;
}

.workspace-quickbar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -10px 0 18px;
  max-width: 1360px;
}

.quick-link {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 13px 14px;
  text-align: left;
}

.quick-link strong {
  color: var(--ink);
  font-size: 16px;
}

.quick-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
}

.quick-link:hover,
.quick-link.active {
  border-color: var(--green-dark);
  box-shadow: inset 0 4px 0 var(--yellow), var(--shadow-soft);
}

.operator-board {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.58fr);
  margin-bottom: 18px;
  max-width: 1360px;
}

.operator-main,
.operator-aside {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.operator-main h2 {
  font-size: 26px;
  line-height: 1.12;
  margin-bottom: 8px;
}

.operator-main > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 820px;
}

.operator-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-steps button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 152px;
  padding: 14px;
  text-align: left;
}

.operator-steps button:hover {
  border-color: var(--green-dark);
  box-shadow: inset 0 4px 0 var(--yellow), var(--shadow-soft);
}

.operator-steps button span,
.aci-process-strip article span {
  background: var(--yellow);
  border-radius: 999px;
  color: #071416;
  display: grid;
  font-weight: 950;
  height: 30px;
  place-items: center;
  width: 30px;
}

.operator-steps button strong,
.aci-process-strip article strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.operator-steps button em,
.aci-process-strip article em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.operator-aside {
  align-content: start;
  display: grid;
  gap: 12px;
}

.operator-aside-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.operator-aside h3 {
  font-size: 21px;
  line-height: 1.18;
  margin-bottom: 0;
}

.dashboard-focus-list {
  display: grid;
  gap: 9px;
}

.dashboard-focus-row {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  text-align: left;
}

.dashboard-focus-row strong {
  color: var(--ink);
}

.dashboard-focus-row span,
.dashboard-focus-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.3;
}

.aci-process-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  max-width: 1360px;
}

.accompaniment-sub {
  border-left-color: rgba(244, 197, 49, 0.36);
}

.accompaniment-command-panel {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  max-width: 1360px;
}

.accompaniment-command-card {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: white;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 162px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  text-align: left;
}

.accompaniment-command-card::before {
  background: var(--yellow);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.accompaniment-command-card.primary-command {
  background: #0d2429;
}

.accompaniment-command-card.secondary-command {
  background: #172c33;
}

.accompaniment-command-card:hover {
  box-shadow: 0 22px 50px rgba(13, 36, 41, 0.2);
  transform: translateY(-1px);
}

.accompaniment-command-card span,
.accompaniment-command-card strong,
.accompaniment-command-card em {
  position: relative;
  z-index: 1;
}

.accompaniment-command-card span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.accompaniment-command-card strong {
  color: white;
  font-size: 28px;
  line-height: 1.08;
}

.accompaniment-command-card em {
  color: #d8e7e9;
  font-style: normal;
  line-height: 1.45;
  max-width: 620px;
}

.aci-subtabs {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 1360px;
  padding: 10px;
  position: sticky;
  top: 12px;
  z-index: 4;
}

.aci-tab-button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 38px;
  padding: 9px 12px;
}

.aci-tab-button:hover,
.aci-tab-button.active {
  background: var(--yellow);
  border-color: #d2a91e;
  color: #071416;
}

.aci-process-strip article {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 15px;
}

@media (max-width: 1180px) {
  .workspace-quickbar,
  .operator-steps,
  .accompaniment-command-panel,
  .aci-process-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace-quickbar,
  .operator-steps,
  .consulting-steps div,
  .accompaniment-command-panel,
  .aci-process-strip {
    grid-template-columns: 1fr;
  }

  .quick-link,
  .operator-steps button,
  .accompaniment-command-card,
  .aci-process-strip article {
    min-height: auto;
  }
}

/* Couche mobile terrain - prototype PWA */
.mobile-shell-bar,
.mobile-bottom-nav,
.mobile-sidebar-overlay,
.mobile-investor-strip {
  display: none;
}

.gateway-screen > .gateway-brand,
.gateway-screen > .gateway-hero:not(.landing-hero),
.legacy-gateway-entry-grid {
  display: none;
}

.gateway-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gateway-nav-link,
.landing-hero-actions a {
  align-items: center;
  background: var(--yellow);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.landing-hero {
  align-self: center;
}

.landing-hero h1 {
  max-width: 980px;
}

.landing-hero p:not(.eyebrow) {
  max-width: 900px;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.landing-hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.landing-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  max-width: 980px;
}

.landing-hero-proof span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 11px;
}

.landing-band {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  display: grid;
  gap: 20px;
  max-width: 1120px;
  padding: 26px;
}

.landing-band span {
  color: #6b5600;
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.landing-band h2 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.landing-band p {
  color: #3f3f3f;
  line-height: 1.48;
  margin: 0;
}

.landing-offer-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-offer-grid article,
.landing-use-grid article,
.landing-assistant-grid article,
.landing-consulting-grid article,
.landing-difference li,
.landing-investor li {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.landing-offer-grid strong,
.landing-use-grid strong,
.landing-assistant-grid strong,
.landing-consulting-grid strong,
.landing-difference strong {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}

.landing-use-grid,
.landing-assistant-grid,
.landing-consulting-grid {
  display: grid;
  gap: 14px;
}

.landing-use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-consulting {
  background:
    linear-gradient(135deg, rgba(242, 194, 48, 0.22), rgba(255, 255, 255, 0.98)),
    var(--surface);
  border-color: rgba(242, 194, 48, 0.42);
}

.landing-consulting-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-assistant-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-assistant-grid em {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  margin-bottom: 12px;
  min-height: 30px;
  padding: 6px 10px;
}

.landing-demo-entry {
  align-items: center;
  background: var(--yellow);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 1120px;
  padding: 24px 26px;
}

.landing-demo-entry span {
  color: #5b4800;
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.landing-demo-entry h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  margin: 0 0 8px;
}

.landing-demo-entry p {
  color: #2f2f2f;
  line-height: 1.45;
  margin: 0;
  max-width: 740px;
}

.landing-demo-entry a {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  text-decoration: none;
  white-space: nowrap;
}

.landing-difference {
  background: #ffffff;
}

.landing-difference ol {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-difference li span {
  color: #4d4d4d;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  text-transform: none;
}

.landing-investor {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.landing-investor ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-investor li {
  align-items: center;
  display: flex;
  font-weight: 850;
  gap: 10px;
}

.landing-investor li::before {
  background: var(--yellow);
  border-radius: 999px;
  content: "";
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.gateway-entry-grid {
  scroll-margin-top: 24px;
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
    padding-bottom: 76px;
  }

  .show-gateway {
    padding-bottom: 0;
  }

  .gateway-screen {
    gap: 22px;
    min-height: 100svh;
    overflow-x: hidden;
    padding: 22px;
  }

  .gateway-hero {
    align-self: center;
  }

  .gateway-hero h1 {
    font-size: 40px;
    line-height: 1;
  }

  .gateway-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .gateway-entry-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
  }

  .gateway-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    width: 100%;
  }

  .gateway-nav-link {
    flex: 0 0 auto;
    width: 100%;
  }

  .landing-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-band,
  .landing-investor,
  .landing-demo-entry {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 20px;
    width: 100%;
  }

  .landing-offer-grid,
  .landing-use-grid,
  .landing-assistant-grid,
  .landing-difference ol {
    grid-template-columns: 1fr;
  }

  .gateway-card {
    min-height: auto;
    padding: 20px;
  }

  .mobile-shell-bar {
    align-items: center;
    background: var(--ink);
    border-bottom: 1px solid #2e3035;
    color: #ffffff;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 62px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .show-gateway .mobile-shell-bar,
  .employee-mode .mobile-shell-bar,
  .employee-mode .mobile-bottom-nav,
  .show-gateway .mobile-bottom-nav {
    display: none;
  }

  .mobile-shell-bar strong,
  .mobile-shell-bar span {
    display: block;
  }

  .mobile-shell-bar span {
    color: #d4d5d8;
    font-size: 12px;
    margin-top: 2px;
  }

  .mobile-icon-button,
  .mobile-install-button {
    background: var(--yellow);
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    min-height: 42px;
    padding: 10px 12px;
  }

  .mobile-install-button[hidden] {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: auto;
  }

  .sidebar {
    bottom: 0;
    box-shadow: 18px 0 42px rgba(16, 17, 19, 0.28);
    height: 100dvh;
    left: 0;
    max-width: 86vw;
    overflow: auto;
    padding-bottom: 96px;
    position: fixed;
    top: 0;
    transform: translateX(-104%);
    transition: transform 0.18s ease;
    width: 312px;
    z-index: 100;
  }

  .mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-overlay {
    background: rgba(0, 0, 0, 0.46);
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 90;
  }

  .mobile-sidebar-overlay[hidden] {
    display: none;
  }

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

  .nav-item {
    min-height: 48px;
  }

  .main {
    padding: 16px 14px 24px;
  }

  .topbar {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .topbar-actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .workspace-quickbar {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
  }

  .mobile-investor-strip {
    background: var(--ink);
    border: 1px solid #2e3035;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    color: #ffffff;
    display: grid;
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px;
  }

  .mobile-investor-strip span {
    color: var(--yellow);
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
  }

  .mobile-investor-strip strong {
    display: block;
    font-size: 20px;
    line-height: 1.12;
  }

  .mobile-investor-strip p {
    color: #e6e6e1;
    line-height: 1.45;
    margin: 10px 0 0;
  }

  .mobile-investor-strip ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-investor-strip li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    padding: 9px 10px;
  }

  .quick-link {
    min-height: 76px;
  }

  .content-grid,
  .two-columns,
  .three-columns,
  .metrics-grid,
  .document-workspace,
  .aci-workspace,
  .payroll-workspace,
  .structure-entry-grid,
  .module-grid {
    grid-template-columns: 1fr !important;
  }

  .panel,
  .dashboard-card,
  .member-card,
  .document-row,
  .aci-beneficiary-card {
    border-radius: 8px;
  }

  .toolbar,
  .panel-heading,
  .payroll-hero,
  .aci-hero,
  .report-headline {
    align-items: stretch;
    flex-direction: column;
  }

  .table-scroll,
  table,
  .payroll-table,
  .variables-table {
    max-width: 100%;
    overflow-x: auto;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .mobile-bottom-nav {
    background: #ffffff;
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -12px 28px rgba(16, 17, 19, 0.10);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(6, 1fr);
    left: 0;
    padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
    position: fixed;
    right: 0;
    z-index: 70;
  }

  .mobile-bottom-nav button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    min-height: 48px;
    padding: 8px 4px;
  }

  .mobile-bottom-nav button:hover,
  .mobile-bottom-nav button:focus-visible {
    background: var(--yellow-soft);
  }

  .mobile-bottom-nav button[data-go-view="consulting"] {
    background: var(--yellow);
    color: var(--ink);
  }
}

/* Correctif lisibilite premier ecran Sensia */
.gateway-screen > .gateway-nav .gateway-brand strong,
.gateway-screen > .gateway-nav .gateway-brand span,
.gateway-screen > .landing-hero h1,
.gateway-screen > .landing-hero p,
.gateway-screen > .landing-hero .eyebrow {
  color: #ffffff !important;
}

.gateway-screen > .gateway-nav .gateway-brand span,
.gateway-screen > .landing-hero p:not(.eyebrow) {
  color: #f1f3f5 !important;
}

.gateway-screen > .landing-hero .eyebrow {
  background: rgba(255, 211, 38, 0.15);
  border: 1px solid rgba(255, 211, 38, 0.35);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 7px 10px;
}

.gateway-screen > .landing-hero h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.gateway-screen > .landing-hero .landing-hero-actions a,
.gateway-screen > .gateway-nav .gateway-nav-link {
  background: #ffd326 !important;
  border: 1px solid rgba(255, 211, 38, 0.82) !important;
  color: #111111 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.gateway-screen > .landing-hero .landing-hero-actions a:last-child {
  background: #2e2e2e !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  color: #ffffff !important;
}

.gateway-screen > .gateway-nav .brand-mark,
.gateway-screen > .gateway-brand .brand-mark {
  background: #ffd326 !important;
  color: #111111 !important;
}

.gateway-screen > .landing-hero-proof span {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

.gateway-screen > .landing-hero .landing-hero-actions a[href="#sensia-conseil-formation"] {
  background: #20c9c7 !important;
  border-color: rgba(32, 201, 199, 0.90) !important;
  color: #061313 !important;
  box-shadow: 0 14px 34px rgba(32, 201, 199, 0.28);
}
