@font-face {
  font-family: Raleway;
  src: url("raleway.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("montserrat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand: #ff9933;
  --brand-dark: #995000;
  --brand-wash: #fff2e6;
  --ink: #1d1d1d;
  --muted: #68636a;
  --line: #e6e2de;
  --canvas: #f6f5f4;
  --paper: #ffffff;
  font:
    15px/1.55 Raleway,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}
a {
  color: var(--brand-dark);
  text-underline-offset: 0.22em;
}
a:hover {
  color: #733900;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #ff993380;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 250px;
  transform: translateY(-170%);
  background: white;
  padding: 0.7rem;
}
.skip-link:focus {
  transform: none;
}
.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  vertical-align: middle;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 27px 20px 20px;
  background: #1d1d1d;
  color: #f7f4f5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 174px;
  height: auto;
  aspect-ratio: 595 / 154;
  object-fit: contain;
}
.brand > span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4ccd0;
}
.brand-block {
  padding: 3px 6px 37px;
}
.nav-label {
  padding: 0 10px 12px;
  font-size: 0.67rem;
  color: #b9acb2;
  letter-spacing: 0.06em;
}
.app-sidebar nav {
  display: grid;
  gap: 6px;
}
.app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: #e2dade;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.app-sidebar nav a:hover {
  background: #ffffff0d;
  color: white;
}
.app-sidebar nav a[aria-current="page"] {
  background: var(--brand);
  color: var(--ink);
}
.sidebar-note {
  margin: auto 8px 18px;
  padding-top: 28px;
  font-size: 0.77rem;
  color: #bdb1b7;
}
.sidebar-note strong {
  display: block;
  color: #eee7e9;
  font-weight: 500;
  margin: 13px 0 8px;
}
.sidebar-note p {
  font-size: 0.7rem;
  line-height: 1.8;
}
.brand-line {
  display: block;
  width: 35px;
  height: 3px;
  background: var(--brand);
}
.sidebar-account {
  border-top: 1px solid #ffffff20;
  padding: 18px 3px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe7cc;
  color: var(--brand-dark);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
}
.sidebar-account strong {
  display: block;
  font-size: 0.77rem;
  overflow-wrap: anywhere;
}
.sidebar-account small {
  display: block;
  color: #bfb4ba;
  font-size: 0.66rem;
}
.logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #c7bcc1;
  background: transparent;
  border: 0;
  padding: 8px;
  font-size: 0.72rem;
  cursor: pointer;
}
.logout:hover {
  color: white;
  background: #ffffff0d;
}
.logout .icon {
  width: 16px;
  height: 16px;
}
.app-content {
  margin-left: 236px;
  min-width: 0;
}
.app-topbar {
  min-height: 68px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 0.76rem;
}
.topbar-divider {
  color: #bfb2b8;
  margin: 0 12px;
}
.workspace-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
}
.workspace-state > span {
  width: 6px;
  height: 6px;
  background: #448064;
  border-radius: 50%;
}
main {
  max-width: 1640px;
  margin: auto;
  padding: 32px;
  min-height: calc(100vh - 145px);
  min-width: 0;
}
.page-heading {
  margin-bottom: 22px;
}
.eyebrow {
  color: var(--brand-dark);
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  font-weight: 700;
}
h1,
h2,
h3 {
  font-family: Montserrat, "Segoe UI", sans-serif;
  line-height: 1.3;
}
h1 {
  margin: 6px 0 0;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.03rem;
  margin: 0 0 13px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 0.88rem;
  margin: 18px 0 9px;
}
p {
  margin: 0 0 14px;
}
.lead,
.muted {
  color: var(--muted);
}
.lead {
  font-size: 0.88rem;
}
small {
  font-size: 0.75rem;
}
footer {
  max-width: 1640px;
  padding: 23px 32px;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.69rem;
}
footer > span {
  margin-left: auto;
}
.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.77rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
.button:hover,
button:hover {
  color: var(--ink);
  background: #ef861d;
  border-color: #ef861d;
}
.subtle {
  color: var(--ink);
  background: #fff;
  border-color: #d7d1cb;
}
.subtle:hover {
  background: var(--brand-wash);
  color: var(--brand-dark);
  border-color: #edbc8b;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.danger {
  background: #8f2035;
  border-color: #8f2035;
  color: white;
}
.danger:hover {
  background: #70182b;
  border-color: #70182b;
  color: white;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  min-width: 0;
}
.panel > h2 {
  margin-top: 4px;
}
.stack,
.editor-main {
  display: grid;
  gap: 18px;
}
.section-head,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2,
.section-head p {
  margin: 0;
}
.section-head a {
  font-size: 0.76rem;
}
.section-space {
  margin-top: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  color: #50494e;
  font-size: 0.76rem;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  display: block;
  margin-top: 7px;
  background: #fff;
  border: 1px solid #d8d2cc;
  color: #292329;
  border-radius: 6px;
  padding: 11px;
  font-size: 0.83rem;
  font-weight: 400;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #bfb2a6;
}
input[readonly] {
  background: #faf9f7;
}
input[type="file"] {
  max-width: 100%;
  font-size: 0.74rem;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.form-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.notice {
  background: #fff4e2;
  color: #78501b;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 0.82rem;
  border-left: 3px solid #dca856;
}
.error {
  background: #fff0f2;
  color: #97233c;
  border-color: var(--brand);
}
.notice.success {
  background: #edf7f0;
  color: #286547;
  border-color: #62a27c;
}
.matching,
.balance {
  color: #2e7552;
}
.save-message {
  font-size: 0.82rem;
  color: var(--brand-dark);
  margin-top: 10px;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.empty-state {
  padding: 45px;
  border: 1px dashed #d5cbd0;
  text-align: center;
  color: var(--muted);
  border-radius: 10px;
  background: #fff;
}
.empty-state h2 {
  color: var(--ink);
}
.welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  border-left: 4px solid var(--brand);
}
.welcome-strip h2 {
  font-size: 1.5rem;
  margin: 7px 0 10px;
}
.welcome-strip p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 560px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin: 23px 0;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.metric:hover {
  border-color: var(--brand);
  color: var(--ink);
}
.metric > span {
  color: var(--muted);
  font-size: 0.73rem;
}
.metric strong {
  font:
    700 1.85rem/1.1 Montserrat,
    sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 0.68rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric .icon {
  width: 16px;
  height: 16px;
}
.dashboard-columns,
.dossier-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
  gap: 22px;
}
.dossier-columns {
  align-items: start;
}
.attention-panel {
  background: #2b2428;
  color: white;
}
.attention-panel h2 {
  font-size: 1.3rem;
  margin-top: 10px;
}
.attention-panel p {
  font-size: 0.82rem;
  color: #d2c6cd;
}
.attention-panel .eyebrow {
  color: #ffb66b;
}
.text-link {
  display: block;
  margin-top: 18px;
  font-size: 0.77rem;
  font-weight: 600;
}
.attention-panel .text-link {
  color: #ffd6ab;
}
.agenda-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.agenda-preview > span:nth-child(2) {
  flex: 1;
}
.agenda-preview strong {
  display: block;
  font-size: 0.8rem;
}
.agenda-preview small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 3px;
}
.agenda-time {
  font-weight: 700;
  font-size: 0.86rem;
  min-width: 96px;
}
.stage-nav {
  display: flex;
  overflow: auto;
  gap: 6px;
  margin: 22px 0;
  padding-bottom: 7px;
}
.stage-nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.76rem;
}
.stage-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: #fff0df;
  font-weight: 700;
}
.primary-search {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 1fr 1fr auto;
  gap: 15px;
  align-items: end;
}
.advanced-filters {
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  color: #60535c;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 0;
}
details[open] > summary {
  margin-bottom: 15px;
}
.list-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding-top: 10px;
}
.results-toolbar {
  margin: 20px 0 16px;
  font-size: 0.75rem;
}
.view-switch {
  display: inline-flex;
  border: 1px solid #ddd1d6;
  padding: 3px;
  background: white;
  border-radius: 7px;
}
.view-switch a {
  padding: 5px 12px;
  color: var(--muted);
  text-decoration: none;
}
.view-switch a[aria-current="page"] {
  background: #2c252a;
  border-radius: 4px;
  color: white;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.mission-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mission-card:hover {
  border-color: #e6b17a;
  box-shadow: 0 4px 20px #38242b07;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 19px;
}
.mission-reference {
  font-size: 0.61rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.kind-label {
  color: var(--brand-dark);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.mission-card h2 {
  font-size: 0.97rem;
  margin: 7px 0 20px;
  min-height: 2.5em;
}
.mission-card h2 a {
  text-decoration: none;
  color: var(--ink);
}
.site-line,
.card-schedule {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 0.77rem;
  margin-bottom: 14px;
}
.site-line .icon,
.card-schedule .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  color: #89747e;
}
.site-line small,
.card-schedule small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.7rem;
}
.site-line strong {
  font-weight: 600;
}
.card-reference {
  font-size: 0.69rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.product-summary {
  font-size: 0.7rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  margin-top: auto;
}
.card-bottom strong {
  font-family: Montserrat, sans-serif;
  font-size: 0.91rem;
  text-align: right;
}
.card-bottom small {
  display: block;
  font:
    400 0.63rem/1.5 Raleway,
    sans-serif;
  color: var(--muted);
}
.card-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -20px;
  padding: 12px 20px;
  background: #faf9f7;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
}
.card-open .icon {
  width: 17px;
  height: 17px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.64rem;
  font-weight: 700;
  background: #f2edef;
  color: #6b5962;
  line-height: 1.4;
  white-space: nowrap;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge.acceptee,
.invoice-validee {
  background: #edf1f6;
  color: #4d6080;
}
.badge.a_valider,
.invoice-soumise {
  background: #fff1d8;
  color: #855715;
}
.badge.publiee,
.invoice-payee {
  background: #eaf5ed;
  color: #34704b;
}
.badge.reliquat,
.invoice-correction {
  background: #fce9ed;
  color: #ab2f4d;
}
.badge.annulee,
.badge.refusee {
  color: #74646b;
  background: #eee9eb;
}
.invoice-partielle,
.invoice-complement {
  background: #f6eafb;
  color: #7b428b;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.78rem;
}
th {
  font-size: 0.68rem;
  color: #7b6e74;
  background: #fbfaf8;
  font-weight: 600;
  white-space: nowrap;
}
td,
th {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #fffbf6;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.record {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pagination {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--muted);
}
.breadcrumb {
  display: inline-block;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
}
main:has(> .dossier) > .page-heading,
main:has(> .finance-dossier) > .page-heading {
  display: none;
}
.dossier-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 25px;
  margin-bottom: 25px;
}
.dossier-heading h1 {
  max-width: 700px;
  margin-top: 8px;
  font-size: 1.8rem;
}
.dossier-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.dossier-state {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 18px;
}
.dossier-state .actions {
  justify-content: end;
}
.dossier-state .button,
.dossier-state button {
  font-size: 0.68rem;
  padding: 8px 12px;
}
.dossier-tabs {
  display: flex;
  gap: 24px;
  overflow: auto;
  border-bottom: 1px solid #d9cfd4;
  margin: 25px 0;
}
.dossier-tabs a {
  white-space: nowrap;
  padding: 12px 0 14px;
  font-size: 0.77rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.dossier-tabs a[aria-selected="true"] {
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 700;
}
.address-text {
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.contact-band small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
.phone {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--brand-wash);
  color: var(--brand-dark);
  border-radius: 5px;
  padding: 7px 10px;
  text-decoration: none;
}
dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 0;
}
dt {
  font-size: 0.71rem;
  color: var(--muted);
}
dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.visit-card {
  border-top: 3px solid var(--brand);
}
.visit-day {
  font-family: Montserrat, sans-serif;
  display: block;
  font-size: 1.05rem;
  margin: 18px 0 5px;
}
.visit-hour {
  display: block;
  font:
    700 2.1rem/1.2 Montserrat,
    sans-serif;
  letter-spacing: -0.05em;
}
.visit-card p {
  margin: 12px 0 0;
  font-size: 0.77rem;
  color: var(--muted);
}
.dossier-guidance {
  background: #fff3e6;
  border-color: #ecd9c6;
}
.dossier-guidance h2 {
  margin-top: 9px;
}
.dossier-guidance p,
.context-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}
.brand-notice {
  background: #faf5ef;
  border-radius: 7px;
  padding: 14px;
  margin: 20px 0;
  color: #6b5c50;
  font-size: 0.8rem;
}
.brand-notice strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
}
.brief-content {
  margin-top: 22px;
  font-size: 0.89rem;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 17px 0;
  border-top: 2px solid var(--ink);
  font-size: 0.76rem;
}
.total strong {
  font:
    700 1.35rem/1.2 Montserrat,
    sans-serif;
}
.closure-fields {
  display: grid;
  gap: 18px;
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.time-grid small {
  display: block;
  margin-top: 6px;
  font-size: 0.67rem;
  color: var(--muted);
}
.time-output {
  display: block;
  border: 1px solid #d9cbd1;
  border-radius: 6px;
  padding: 11px;
  margin-top: 7px;
  background: #faf4ed;
  font-weight: 700;
}
.report-advice {
  font-size: 0.72rem;
  color: #76624e;
  margin: 0;
  padding: 12px;
  background: #faf6f1;
  border-radius: 5px;
}
.upload-zone {
  border: 1px dashed #c9b39d;
  padding: 16px;
  border-radius: 8px;
  background: #fdfaf6;
}
.upload-zone small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 400;
}
.upload-zone input {
  border: none;
  padding: 7px 0 0;
  background: transparent;
}
.attachments {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: grid;
  gap: 9px;
}
.attachments li {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fcfbf9;
  border-radius: 6px;
  overflow-wrap: anywhere;
  font-size: 0.77rem;
}
.attachments a {
  font-weight: 600;
  text-decoration: none;
}
.attachments small {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
}
.inline {
  display: inline-block;
  margin-top: 8px;
}
.inline button {
  font-size: 0.65rem;
  padding: 4px 8px;
}
.history {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.history li {
  position: relative;
  border-left: 1px solid #e0d3c5;
  padding: 0 0 22px 20px;
  font-size: 0.81rem;
}
.history li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 3px;
  width: 7px;
  height: 7px;
  background: var(--brand);
  border: 1px solid #fff;
  border-radius: 50%;
}
.history small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
  font-size: 0.67rem;
}
.history strong {
  display: block;
  font-weight: 600;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 23px;
  align-items: start;
}
.editor-main > .panel > label {
  margin-top: 20px;
}
.editor-guide {
  position: sticky;
  top: 25px;
}
.editor-guide nav {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.editor-guide a {
  font-size: 0.77rem;
  text-decoration: none;
}
.editor-guide p {
  font-size: 0.75rem;
}
.item-editor {
  min-width: 640px;
}
.item-editor th:nth-child(2),
.item-editor th:nth-child(3) {
  width: 120px;
}
.item-editor input {
  margin: 0;
  font-size: 0.76rem;
  padding: 8px;
}
.field-label {
  color: var(--muted);
  font-size: 0.7rem;
  display: block;
  margin-bottom: 9px;
}
.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 25px;
  align-items: start;
}
.people-grid {
  display: grid;
  gap: 12px;
}
.person-card {
  display: flex;
  gap: 15px;
  align-items: center;
}
.person-card h2 {
  font-size: 0.95rem;
  margin: 5px 0;
}
.person-card p {
  font-size: 0.77rem;
  overflow-wrap: anywhere;
  margin: 4px 0;
}
.network-layout > aside {
  position: sticky;
  top: 25px;
}
.agenda-week {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.agenda-day {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 20px;
}
.agenda-date {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  text-transform: capitalize;
  font-size: 0.73rem;
  padding-top: 10px;
}
.agenda-date strong {
  font:
    700 2rem/1.3 Montserrat,
    sans-serif;
  color: var(--ink);
}
.agenda-date small {
  font-size: 0.67rem;
}
.agenda-entries {
  display: grid;
  gap: 8px;
}
.agenda-entry {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
}
.agenda-entry:hover {
  border-color: #e6b17a;
}
.agenda-entry-time {
  width: 65px;
  flex: 0 0 65px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
}
.agenda-entry-time small {
  display: block;
  color: var(--muted);
  font:
    400 0.67rem Raleway,
    sans-serif;
  margin-top: 5px;
}
.agenda-entry-title {
  flex: 1;
  min-width: 0;
}
.agenda-entry-title strong {
  display: block;
  font-size: 0.84rem;
  margin: 5px 0;
}
.agenda-entry-title small {
  display: block;
  color: var(--muted);
  font-size: 0.71rem;
}
.agenda-free {
  padding: 18px 20px;
  border: 1px dashed #e0d8dc;
  border-radius: 8px;
  color: #93878e;
  font-size: 0.74rem;
}
.invoice-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 15px;
}
.invoice-filter label {
  flex: 1 1 170px;
}
.invoice-filter > a {
  align-self: center;
  font-size: 0.75rem;
}
.finance-metrics .metric strong {
  font-size: 1.5rem;
}
.statement-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.statement {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.statement-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.statement-header h2 {
  margin: 5px 0;
  font-size: 1.15rem;
  text-transform: capitalize;
}
.statement-header p {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0;
}
.statement-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0;
  margin: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement-amounts > div:not(:first-child) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.statement-amounts small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  margin-bottom: 8px;
}
.statement-amounts strong {
  display: block;
  font:
    700 1.1rem/1.3 Montserrat,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.statement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.statement-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.finance-dossier-heading {
  margin-bottom: 24px;
}
.finance-dossier-heading h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.billing-layout > .stack {
  min-width: 0;
}
.invoice-document {
  padding: 25px;
  border: 1px solid #e7dacb;
  background: #fcf7f0;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.invoice-document > span {
  display: block;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.invoice-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.invoice-amounts dd {
  font:
    700 1.03rem/1.3 Montserrat,
    sans-serif;
}
.billing-dates,
.billing-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 15px;
}
.billing-correction {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.check-line {
  display: flex;
  align-items: start;
  gap: 10px;
}
.check-line input {
  width: auto;
  margin-top: 3px;
}
.payment-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.8rem;
}
.payment-row small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.auth-page {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  background: white;
  min-height: 100vh;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px;
  background: #252124;
  color: white;
  min-height: 100vh;
  border-left: 8px solid var(--brand);
}
.auth-brand .eyebrow {
  color: #ffb66b;
}
.auth-brand h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.05em;
  margin: 16px 0 25px;
}
.auth-brand p {
  color: #c7bbc1;
  font-size: 0.88rem;
  max-width: 390px;
}
.auth-domains {
  display: grid;
  gap: 8px;
  border-top: 1px solid #ffffff20;
  margin-top: 35px;
  padding-top: 25px;
  font-size: 0.73rem;
  color: #a99ba3;
}
.auth-brand > small {
  color: #a99ba3;
  font-size: 0.68rem;
}
.auth-page .app-content {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-page main {
  width: min(100%, 480px);
  min-height: 0;
  padding: 50px 30px;
}
.auth-page footer {
  width: 100%;
  font-size: 0.65rem;
}
.auth-page footer > span {
  display: none;
}
.auth-page .login {
  border: 0;
  padding: 0;
}
.auth-page h1 {
  font-size: 1.9rem;
}
.auth-page .login p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 25px;
}
.auth-page .login form {
  gap: 20px;
}
@media (max-width: 1200px) {
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dossier-columns,
  .dashboard-columns {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  }
  .dossier-heading {
    flex-direction: column;
  }
  .dossier-state {
    align-items: start;
  }
  .dossier-state .actions {
    justify-content: start;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-guide {
    position: static;
    order: -1;
  }
  .editor-guide nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 12px 0 0;
  }
  .editor-guide > p {
    display: none;
  }
  .network-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}
@media (max-width: 1000px) {
  .app-sidebar {
    width: 210px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .app-content {
    margin-left: 210px;
  }
  main {
    padding: 24px;
  }
  .primary-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dossier-columns,
  .dashboard-columns,
  .billing-layout,
  .network-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .network-layout > aside {
    position: static;
  }
  .list-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agenda-preview {
    flex-wrap: wrap;
  }
  .auth-brand {
    padding: 35px;
  }
}
@media (max-width: 760px) {
  .app-sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 14px 17px 9px;
  }
  .brand-block {
    padding: 0 0 16px;
  }
  .brand img {
    width: 135px;
    height: auto;
  }
  .brand > span {
    font-size: 0.58rem;
  }
  .app-sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    padding-bottom: 6px;
  }
  .app-sidebar nav a {
    flex: 0 0 auto;
    padding: 9px 11px;
    gap: 6px;
    font-size: 0.7rem;
  }
  .app-sidebar nav .icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .nav-label,
  .sidebar-note,
  .sidebar-account {
    display: none;
  }
  .app-sidebar > .logout,
  .app-sidebar > form {
    position: absolute;
    top: 26px;
    right: 18px;
  }
  .app-sidebar .logout {
    font-size: 0.63rem;
    width: auto;
    gap: 10px;
  }
  .app-content {
    margin-left: 0;
  }
  .app-topbar {
    padding: 12px 18px;
    min-height: 45px;
    font-size: 0.67rem;
  }
  .workspace-state {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dossier-tabs {
    gap: 22px;
  }
  .statement-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .statement-amounts > div:not(:first-child) {
    border: none;
    padding: 0;
  }
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-brand {
    min-height: auto;
    padding: 25px;
    gap: 30px;
  }
  .auth-brand h2 {
    font-size: 1.6rem;
    margin: 12px 0;
  }
  .auth-brand > small,
  .auth-domains {
    display: none;
  }
  .auth-page main {
    padding: 35px 24px;
  }
  .auth-brand p {
    margin-bottom: 0;
    font-size: 0.77rem;
  }
  footer {
    padding: 20px 18px;
  }
}
@media (max-width: 520px) {
  .mission-grid,
  .form-grid,
  .list-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 1.6rem;
  }
  .primary-search {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 19px;
  }
  .welcome-strip {
    padding: 22px;
  }
  .results-toolbar {
    align-items: start;
  }
  .dossier-heading h1 {
    font-size: 1.5rem;
  }
  .time-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-day {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }
  .agenda-date {
    font-size: 0.63rem;
  }
  .agenda-date strong {
    font-size: 1.65rem;
  }
  .agenda-entry {
    padding: 15px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .agenda-entry-title {
    flex-basis: calc(100% - 80px);
  }
  .agenda-entry > .icon {
    display: none;
  }
  .statement {
    padding: 20px;
  }
  .statement-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer > span {
    margin-left: 0;
  }
  .invoice-amounts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.network-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.network-company-grid .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.network-company-grid .panel > .button {
  margin-top: auto;
}
.network-company-grid .section-head {
  width: 100%;
}
.network-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.network-users {
  display: grid;
  gap: 20px;
}
.network-user {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
.network-user h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.network-user p {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.network-user .actions {
  margin-top: 18px;
}
.network-user details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.network-user details form {
  margin-top: 18px;
}
.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}
.temporary-password {
  display: block;
  background: var(--brand-wash);
  border: 1px solid var(--line);
  padding: 20px;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.auth-brand-simple {
  justify-content: center;
  align-items: center;
}
.auth-brand-simple .brand {
  align-items: center;
  width: 100%;
}
.auth-brand-simple .brand img {
  width: min(440px, 100%);
}
.auth-brand-simple .brand > span {
  display: none;
}
.password-strength {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 6px 0;
}
.auth-forgot {
  margin-top: 18px;
}
.context-switch {
  display: flex;
  gap: 9px;
  align-items: end;
  max-width: 450px;
}
.context-switch label {
  min-width: 0;
  flex: 1;
  font-size: 0.66rem;
}
.context-switch select {
  margin-top: 3px;
  padding: 7px;
  font-size: 0.7rem;
}
.context-switch button {
  padding: 8px 10px;
  font-size: 0.68rem;
}
.access-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  width: 100%;
}
.access-row p {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.partnership-summary {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.partnership-summary p {
  margin: 7px 0 0;
  font-size: 0.82rem;
}
.mission-unvalidate {
  min-width: 240px;
  max-width: 380px;
}
.mission-unvalidate form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.cf-turnstile {
  min-width: 0;
}
.check-line {
  display: flex;
  gap: 9px;
  align-items: center;
}
.check-line input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .auth-brand-simple {
    padding: 35px 28px;
  }
  .auth-brand-simple .brand img {
    width: min(330px, 100%);
  }
  .app-topbar {
    flex-wrap: wrap;
  }
  .context-switch {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 1100px) {
  .network-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.admin-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 22px;
}
.admin-intro p {
  max-width: 700px;
  color: var(--muted);
}
.admin-progress {
  border-left: 3px solid var(--brand);
  padding: 8px 24px;
  flex-shrink: 0;
}
.admin-progress strong {
  font:
    600 2.5rem Montserrat,
    sans-serif;
  display: block;
}
.admin-progress small {
  font-size: 1.2rem;
  color: var(--muted);
}
.admin-progress > span {
  font-size: 0.78rem;
  color: var(--muted);
}
.administrative-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.administrative-piece h2 {
  margin-top: 12px;
  font-size: 1.08rem;
}
.administrative-piece > p {
  color: var(--muted);
  font-size: 0.86rem;
}
.administrative-piece .notice {
  margin-top: 15px;
}
.piece-dates {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin: 0 0 6px;
}
.piece-dates dt {
  font-size: 0.7rem;
  color: var(--muted);
}
.piece-dates dd {
  margin: 4px 0 0;
  font-size: 0.85rem;
}
.admin-deposit {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.admin-deposit summary {
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-deposit .stack {
  margin-top: 20px;
}
.admin-deposit .muted {
  font-size: 0.77rem;
  margin: 0;
}
.admin-valide {
  background: #e8f4ec;
  color: #286547;
}
.admin-soumis {
  background: #fff4dd;
  color: #78501b;
}
.admin-expire,
.admin-correction {
  background: #ffebed;
  color: #a31723;
}
.admin-renouveler {
  background: #fff4dd;
  color: #78501b;
}
.admin-manquant {
  background: #efedef;
  color: #68636a;
}
.admin-network {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.partner-admin-card {
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.partner-admin-card:hover {
  border-color: var(--brand);
}
.partner-admin-card h2 {
  font-size: 1.2rem;
  margin: 14px 0;
}
.partner-admin-card p {
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.partner-admin-card > span:last-child {
  color: var(--brand-dark);
  font-size: 0.8rem;
}
.profile-read dt {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--muted);
}
.profile-read dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.template-settings > summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .administrative-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .administrative-layout > aside {
    order: -1;
  }
  .admin-network {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .admin-intro {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .admin-progress {
    padding-left: 16px;
  }
  .admin-network {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .app-sidebar,
  .app-topbar,
  footer,
  .print-tip,
  .breadcrumb,
  .dossier-tabs,
  .form-toolbar {
    display: none;
  }
  .app-content {
    margin: 0;
  }
  body {
    background: white;
  }
  main {
    padding: 0;
    width: 100%;
    max-width: none;
  }
  .panel {
    border: 0;
    padding: 10px 0;
  }
}
