/* Structure et typographie de la maquette validée, sans dépendance à ses simulations. */
@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.3px;
  --rail: 222px;
}

body { font-size: 14.3px; }
h1 { font-size: 28.6px; font-weight: 650; letter-spacing: -.9px; line-height: 1.25; }
.app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.app-sidebar { display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow: auto; padding: 24px 14px 16px; border-right: 1px solid var(--border); background: var(--tinted); }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--accent); text-decoration: none; }
.app-brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 27.5px; line-height: 1; font-weight: 650; }
.app-brand-name { font-size: 18.7px; font-weight: 650; letter-spacing: -.6px; }
.app-brand-name > span { display: block; margin-top: -3px; font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; }
.app-cabinet { margin: 0 7px; padding: 11px 12px; background: var(--paper); border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.app-cabinet strong { font-size: 13.2px; }
.app-cabinet > span { display: block; color: var(--muted); font-size: 11px; }
.app-nav { display: grid; gap: 3px; }
.app-nav-caption { padding: 0 12px 7px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); }
.app-nav-link { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 36px; padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13.2px; line-height: 1.5; font-weight: 400; text-align: left; text-decoration: none; }
.app-nav-link:hover { background: var(--hover); }
.app-nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.app-nav-divider { height: 1px; margin: 7px 10px 12px; background: var(--border); }
.app-icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-sidebar-bottom { margin-top: auto; }
.app-user { display: flex; align-items: center; gap: 9px; padding: 17px 8px 8px; margin-top: 6px; border-top: 1px solid var(--border); }
.app-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 650; }
.app-user-name { min-width: 0; overflow-wrap: anywhere; font-size: 12.1px; }
.app-user-name > span { display: block; color: var(--muted); }
.app-logout { margin: 0; }
.app-content { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.authenticated .app-main:not(.demandes-main) { flex: 1; min-height: 0; width: 100%; max-width: none; overflow: auto; margin: 0; padding: 24px 28px 20px; }
.authenticated .app-main:focus { outline: none; }
.authenticated .page-heading { margin-bottom: 16px; }
.authenticated .card { padding: 20px; }
.authenticated button, .authenticated .button { font-size: 12.1px; padding: 7px 12px; }
.authenticated .app-nav-link { font-size: 13.2px; padding: 8px 11px; }
.authenticated .field label { font-size: 13.2px; }
.authenticated .field .muted, .authenticated .field .helptext { font-size: 12.1px; }
.authenticated .data-table { font-size: 12.1px; }
.authenticated .data-table th { font-size: 11px; padding: 9px 13px; }
.authenticated .data-table td { padding: 8px 13px; }
.authenticated .secondary-line { font-size: 11px; }
.skip { z-index: 10; }

@media (min-width: 1600px) {
  :root { --rail: 238px; }
  .authenticated .app-main:not(.demandes-main) { padding-left: 34px; padding-right: 34px; }
}

@media (max-width: 1280px) and (min-width: 761px) {
  :root { --rail: 192px; }
  .app-sidebar { padding: 21px 10px 14px; gap: 20px; }
  .app-brand { gap: 7px; }
  .app-brand-mark { width: 30px; height: 30px; font-size: 24.2px; }
  .app-brand-name { font-size: 16.5px; }
  .authenticated .app-main:not(.demandes-main) { padding: 20px 20px 16px; }
}

@media (max-height: 850px) and (min-width: 761px) {
  .app-sidebar { gap: 17px; }
  .app-user { padding-top: 12px; }
}

@media (max-width: 760px) {
  :root { --rail: 58px; }
  .app-sidebar { padding: 15px 6px 10px; gap: 17px; }
  .app-brand { padding: 0; justify-content: center; }
  .app-brand-mark { width: 32px; height: 32px; font-size: 25px; }
  .app-brand-name, .app-cabinet, .app-nav-caption, .app-user-name { display: none; }
  .app-nav-link > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .authenticated .app-nav-link { justify-content: center; min-height: 38px; padding: 8px; }
  .app-nav-divider { margin: 5px 4px; }
  .app-user { justify-content: center; padding: 12px 0 8px; }
  .authenticated .app-main:not(.demandes-main) { padding: 17px 12px 12px; }
  .authenticated .card { padding: 16px; }
  .authenticated h1 { font-size: 23.1px; }
}
