:root {
  --ds-accent: #006f65;
  --ds-accent-fort: #005e55;
  --ds-sombre: #102f2d;
  --ds-sombre-2: #19413e;
  --ds-sur-sombre-doux: #c6d8d4;
  --ds-fond: #f1f4f2;
  --ds-texte: #182b28;
  --ds-texte-2: #40534e;
  --ds-texte-doux: #566961;
  --ds-bord: #c9d4cc;
  --ds-bord-doux: #dae2db;
  --ds-bord-champ: #92a99e;
  font:
    16px/1.5 'Segoe UI',
    system-ui,
    sans-serif;
  color: var(--ds-texte);
  background: var(--ds-fond);
}
html.theme-dark {
  --ds-fond: #16221f;
  --ds-carte: #202e29;
  --ds-carte-2: #293a33;
  --ds-sombre: #102522;
  --ds-sombre-2: #213d35;
  --ds-texte: #f0f5ef;
  --ds-texte-2: #d1ded5;
  --ds-texte-doux: #b5c7b9;
  --ds-accent: #78d9b4;
  --ds-accent-fort: #96e8bf;
  --ds-sur-accent: #153225;
  --ds-bord: #476052;
  --ds-bord-doux: #354a40;
  --ds-bord-champ: #7b9886;
  color-scheme: dark;
}
html.theme-dark .primary:hover {
  background: var(--ds-accent);
}
.agent-portrait {
  display: block;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ds-carte-2);
}
.org-logo {
  object-fit: contain;
  flex: none;
}
.org {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.branded {
  border-inline-start: 5px solid var(--org-accent);
  padding-inline-start: 0.65rem;
}
input[type='checkbox'] {
  width: 1.2rem;
  min-height: 1.2rem;
  height: 1.2rem;
}
fieldset {
  min-width: 0;
  border: 1px solid var(--ds-bord);
  border-radius: var(--ds-rayon-champ);
  padding: 0.8rem;
}
legend {
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0 0.3rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--ds-accent-fort);
  text-underline-offset: 0.18em;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.13;
  font-weight: 650;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
h3 {
  font-size: 1rem;
  line-height: 1.4;
}
p,
dd,
td,
label,
h1,
h2,
h3,
.row,
.nav a {
  overflow-wrap: anywhere;
}
small,
.muted {
  color: var(--ds-texte-doux);
}
small {
  font-size: 0.83rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ds-accent);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -8rem;
  left: 1rem;
  z-index: 11;
  background: var(--ds-carte);
  padding: 0.6rem;
}
.skip:focus {
  top: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 1.24rem;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.brand span:last-child {
  display: grid;
  line-height: 1.2;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: #c5f078;
  color: var(--ds-sombre);
  font-size: 1.45rem;
  font-weight: 750;
  font-style: italic;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  background: var(--ds-sombre);
  color: var(--ds-sur-sombre);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1rem;
  gap: 1.65rem;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
}
.sidebar .brand {
  margin: 0 0.5rem;
}
.nav {
  display: grid;
  gap: 0.2rem;
}
.nav-group {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-sur-sombre-doux);
  margin: 1.15rem 0.7rem 0.4rem;
}
.nav-group:first-child {
  margin-top: 0;
}
.nav a {
  font-size: 0.9rem;
  border: 1px solid transparent;
  padding: 0.46rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ds-sur-sombre-doux);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--ds-sombre-2);
  color: var(--ds-sur-sombre);
}
.nav a[aria-current='page']::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #c5f078;
}
.sidebar .identity {
  margin-top: auto;
  padding: 0.85rem 0.5rem 0.1rem;
  border-top: 1px solid #456561;
  display: grid;
  gap: 0.6rem;
}
.identity small {
  color: var(--ds-sur-sombre-doux);
}
.logout {
  border: 0;
  background: none;
  color: var(--ds-sur-sombre-doux);
  padding: 0.2rem 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
}
.work {
  min-width: 0;
}
.topbar {
  min-height: 66px;
  border-bottom: 1px solid var(--ds-bord);
  background: var(--ds-carte);
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}
.topbar .org {
  font-weight: 650;
  overflow-wrap: anywhere;
}
main {
  max-width: 1290px;
  margin: 0 auto;
  padding: clamp(1.15rem, 4vw, 3.5rem);
  outline: none;
}
.stack {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  min-width: 0;
}
.panel,
dialog {
  border: 1px solid var(--ds-bord-doux);
  border-radius: var(--ds-rayon-carte);
  background: var(--ds-carte);
  color: var(--ds-texte);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  box-shadow: var(--ds-ombre-carte);
  min-width: 0;
}
.head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.head p {
  max-width: 72ch;
  color: var(--ds-texte-2);
}
.panel h2 + p,
.panel h3 + p {
  margin-top: 0.45rem;
}
.grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  align-items: start;
}
.metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
  overflow-wrap: anywhere;
  gap: 0.7rem;
  align-self: stretch;
}
.metric strong {
  font-size: clamp(1.25rem, 13cqi, 2.25rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.metric small,
.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ds-texte-2);
  letter-spacing: 0.04em;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  min-width: 0;
}
.spread {
  justify-content: space-between;
}
.list {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ds-bord-doux);
  min-width: 0;
}
.list li:first-child {
  padding-top: 0;
}
.list li:last-child {
  padding-bottom: 0;
  border: 0;
}
.empty {
  color: var(--ds-texte-doux);
  border-inline-start: 3px solid var(--ds-bord);
  padding: 0.3rem 0.8rem;
}
.field {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
}
.fields {
  display: grid;
  gap: 0.9rem;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ds-bord-champ);
  border-radius: var(--ds-rayon-champ);
  background: var(--ds-carte);
  padding: 0.55rem 0.65rem;
  font-weight: 400;
  min-height: 42px;
}
select[multiple] {
  min-height: 8rem;
}
textarea {
  resize: vertical;
  min-height: 6.5rem;
}
.button,
.primary {
  border: 1px solid var(--ds-bord-champ);
  background: var(--ds-carte);
  color: var(--ds-texte);
  border-radius: 7px;
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.48rem 0.85rem;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.primary {
  background: var(--ds-accent-fort);
  color: var(--ds-sur-accent);
  border-color: var(--ds-accent-fort);
}
.button:hover {
  background: var(--ds-carte-2);
}
.primary:hover {
  background: var(--ds-sombre);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.error {
  background: var(--ds-urgent-fond);
  color: var(--ds-urgent-texte);
  border-radius: 7px;
  padding: 0.6rem 0.8rem;
}
[hidden],
.error:empty {
  display: none !important;
}
#notice:not(:empty) {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  background: var(--ds-sombre);
  color: var(--ds-sur-sombre);
  max-width: min(420px, 92vw);
  padding: 0.7rem 1.15rem;
  border-radius: var(--ds-rayon-champ);
  box-shadow: var(--ds-ombre-carte);
}
dialog {
  width: min(520px, calc(100% - 2rem));
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: var(--ds-voile-fenetre);
}
dialog .head,
dialog .fields {
  margin-bottom: 0.9rem;
}
.break,
.message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chunk {
  border-top: 1px solid var(--ds-bord-doux);
  padding-top: 1rem;
}
.tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.tabs a {
  color: var(--ds-texte-2);
  border: 1px solid var(--ds-bord);
  background: var(--ds-carte);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.tabs a[aria-current='page'] {
  color: var(--ds-accent-fort);
  border-color: var(--ds-accent);
  background: var(--ds-accent-teinte);
}
.pill {
  display: inline-block;
  color: var(--ds-accent-fort);
  background: var(--ds-accent-teinte);
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  border-radius: 100px;
  font-weight: 600;
}
.sign {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
}
.sign aside {
  background: var(--ds-sombre);
  color: var(--ds-sur-sombre);
  padding: clamp(1.25rem, 5vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}
.sign aside::before {
  content: '';
  position: absolute;
  inset: 15% -95% -40% 15%;
  border: 1px solid #44726c;
  border-radius: 40%;
  transform: rotate(38deg);
  box-shadow:
    0 0 0 34px var(--ds-sombre),
    0 0 0 35px #335d57,
    0 0 0 68px var(--ds-sombre),
    0 0 0 69px #335d57,
    0 0 0 102px var(--ds-sombre),
    0 0 0 103px #335d57;
  pointer-events: none;
}
.sign aside > * {
  position: relative;
}
.sign aside p {
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 12ch;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  font-weight: 550;
}
.sign main {
  align-self: center;
  width: min(100%, 490px);
  padding: clamp(1.2rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.5rem;
}
.mobile-toggle {
  display: none;
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.65rem;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar nav,
  .sidebar .identity {
    grid-column: 1/-1;
  }
  .sidebar:not(.opened) nav,
  .sidebar:not(.opened) .identity {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    min-height: 38px;
    border-color: #698781;
    color: var(--ds-sur-sombre);
    background: var(--ds-sombre-2);
  }
  .mobile-toggle:hover {
    background: var(--ds-sombre-2);
  }
  .topbar {
    min-height: 46px;
  }
}
@media (max-width: 650px) {
  .sign {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sign aside {
    padding: 0.9rem 1.2rem;
  }
  .sign aside p,
  .sign aside::before {
    display: none;
  }
  .sign main {
    align-self: start;
    margin-top: 1.3rem;
  }
  .row.spread {
    align-items: start;
  }
}
