/* Airbus Design System : fondations et composants utilisés par A2E.
   Valeurs relevées dans les fichiers Figma « Design Kits » (Foundations,
   Brands & Themes, Components) : palette Primary Blue, typo Inter,
   boutons rayon 3px, cartes à angles droits avec Elevation 09. */


/* Inter : sous-ensembles latin et latin étendu (documents en polonais, roumain, etc.). */
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Primary Blue */
  --blue-100: #011333;
  --blue-90: #00205b;
  --blue-70: #063b9e;
  --blue-50: #255fcc;
  --blue-30: #8fb1ef;
  --blue-10: #e6eefc;
  /* Sky Blue / Turquoise (accents) */
  --sky-50: #00aeef;
  --turquoise-50: #00b0a8;
  /* Cool Grey */
  --grey-90: #1f2329;
  --grey-80: #2f3640;
  --grey-60: #5c6670;
  --grey-40: #a3abb3;
  --grey-20: #d6dade;
  --grey-10: #eef0f2;
  --grey-5: #f6f7f8;
  --white: #ffffff;
  /* Statuts */
  --green-50: #08875b;
  --green-10: #e3f4ec;
  --orange-50: #e07400;
  --orange-10: #fdf0e1;
  --red-50: #d0021b;
  --red-10: #fbe6e8;

  --text: var(--grey-90);
  --text-muted: var(--grey-60);
  --link: var(--blue-50);
  --border: var(--grey-20);
  --surface: var(--white);
  --bg: var(--grey-5);

  --radius-xs: 3px;
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --elev-02: 0 1px 4px rgba(0, 0, 0, .12);
  --elev-04: 0 4px 16px rgba(0, 0, 0, .14);
  --elev-09: 0 8px 56px 2px rgba(0, 0, 0, .24);

  --container: 1248px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue-50); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typographie : contraste Bold / Light */
h1, h2, h3, h4 { margin: 0 0 var(--space-m); line-height: 1.15; color: var(--blue-90); }
.h1 { font-size: 56px; font-weight: 700; letter-spacing: -.01em; }
.h2 { font-size: 48px; font-weight: 700; }
.h3 { font-size: 36px; font-weight: 700; }
.h4 { font-size: 32px; font-weight: 500; }
.h5 { font-size: 24px; font-weight: 700; }
.h6 { font-size: 20px; font-weight: 700; }
.light { font-weight: 300; }
.body-l { font-size: 18px; }
.body-s { font-size: 14px; }
.label-s { font-size: 14px; line-height: 20px; font-weight: 700; }
.muted { color: var(--text-muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-l); }

/* Header (Global Navigation) */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue-90); color: var(--white);
  height: var(--header-h);
}
.header .container { height: 100%; display: flex; align-items: center; gap: var(--space-l); }
.header__brand { display: flex; align-items: center; gap: var(--space-m); color: var(--white); }
.header__brand:hover { text-decoration: none; }
.header__logo { width: 112px; height: auto; color: var(--white); }
.header__app { padding-left: var(--space-m); border-left: 1px solid rgba(255,255,255,.35); font-size: 16px; font-weight: 500; line-height: 1.2; }
.header__nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-s); }
.header__nav a, .header__nav button {
  display: inline-flex; align-items: center; gap: var(--space-s);
  height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-xs);
  background: transparent; color: var(--white); font: 500 14px/20px "Inter", sans-serif; cursor: pointer;
}
.header__nav a:hover, .header__nav button:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.header__nav .is-active { background: rgba(255,255,255,.18); }
.header__nav svg { width: 20px; height: 20px; }
.header__sep { width: 1px; height: 24px; background: rgba(255,255,255,.35); margin: 0 var(--space-xs); }

/* Sous-header : contexte division / site */
.context-bar { background: var(--blue-100); color: var(--white); font-size: 14px; }
.context-bar .container { display: flex; align-items: center; gap: var(--space-m); min-height: 44px; flex-wrap: wrap; }
.context-bar a { color: var(--blue-30); }
.context-bar strong { font-weight: 700; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; margin: var(--space-l) 0 var(--space-m); padding: 0; list-style: none; font-size: 14px; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-s); color: var(--grey-40); }
.breadcrumb a { color: var(--blue-50); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

/* Boutons (taille M : 40px, rayon XS, Label Bold Small) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s);
  height: 40px; padding: 10px var(--space-m); border: 1px solid transparent; border-radius: var(--radius-xs);
  font: 700 14px/20px "Inter", sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--blue-50); color: var(--white); }
.btn--primary:hover { background: var(--blue-70); }
.btn--secondary { background: var(--white); color: var(--blue-50); border-color: var(--blue-50); }
.btn--secondary:hover { background: var(--blue-10); }
.btn--ghost { background: transparent; color: var(--blue-50); }
.btn--ghost:hover { background: var(--blue-10); }
.btn--ghost-negative { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-negative:hover { background: rgba(255,255,255,.12); }
.btn--error { background: var(--red-50); color: var(--white); }
.btn--error:hover { background: #a80016; }
.btn--success { background: var(--green-50); color: var(--white); }
.btn--s { height: 32px; padding: 6px 12px; font-size: 13px; }
.btn--l { height: 48px; padding: 14px var(--space-l); font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* Champs de formulaire */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-m); }
.field label, .field .field__label { font-size: 14px; font-weight: 500; color: var(--grey-80); }
.field__hint { font-size: 13px; color: var(--text-muted); }
.field__error { font-size: 13px; color: var(--red-50); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--grey-40); border-radius: var(--radius-xs); background: var(--white);
  font: 400 16px/22px "Inter", sans-serif; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-50); }
.input.is-invalid { border-color: var(--red-50); }
.textarea { min-height: 120px; resize: vertical; }
.checkbox { display: inline-flex; align-items: center; gap: var(--space-s); font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--blue-50); }

/* Toggle (Airbus Design System) : piste blanche bordée de bleu nuit, pastille à gauche ; activé = piste bleu nuit, pastille blanche à droite */
.toggle { display: inline-flex; align-items: center; gap: var(--space-s); font-size: 14px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 48px; height: 26px; margin: 0; border: 1px solid var(--blue-90); border-radius: 999px; background: var(--white); cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.toggle input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-90); transition: transform .18s ease, background-color .18s ease; }
.toggle input:checked { background: var(--blue-90); }
.toggle input:checked::before { background: var(--white); transform: translateX(22px); }
.toggle input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blue-30); }
.toggle input:focus-visible::before { box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:disabled { border-color: var(--grey-40); background: var(--white); cursor: not-allowed; }
.toggle input:disabled::before { background: var(--grey-40); }
.toggle input:disabled:checked { background: var(--grey-20); }
.toggle:has(input:disabled) { color: var(--grey-60); cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .toggle input, .toggle input::before { transition: none; } }

/* Cartes : angles droits, Elevation 09 au survol */
.card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--elev-02); }
.card--link { display: flex; flex-direction: column; color: inherit; transition: box-shadow .2s, transform .2s; }
.card--link:hover { box-shadow: var(--elev-09); text-decoration: none; transform: translateY(-2px); }
.card__body { padding: var(--space-l); }
.card__title { font-size: 18px; font-weight: 700; color: var(--blue-90); margin: 0 0 var(--space-s); }
.card__icon { width: 40px; height: 40px; color: var(--blue-50); margin-bottom: var(--space-m); }
.card__cta { margin-top: auto; padding: 0 var(--space-l) var(--space-l); color: var(--blue-50); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: var(--space-xs); }

/* Section heading */
.section { padding: var(--space-2xl) 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-m); margin-bottom: var(--space-l); }
.section-heading h2 { font-size: 32px; font-weight: 700; margin: 0; }
.section-heading h2 .light { display: block; font-size: 16px; font-weight: 400; color: var(--text-muted); margin-top: var(--space-xs); }

.grid { display: grid; gap: var(--space-l); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Badge / chip */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 700; background: var(--blue-10); color: var(--blue-70); }
.badge--new { background: var(--turquoise-50); color: var(--white); }
.badge--grey { background: var(--grey-10); color: var(--grey-80); }
/* Texte vert foncé : contraste 4,9:1 sur le fond vert clair (WCAG AA) */
.badge--success { background: var(--green-10); color: #07774f; }
.badge--warning { background: var(--orange-10); color: var(--orange-50); }
.badge--error { background: var(--red-10); color: var(--red-50); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--grey-40); border-radius: 16px; background: var(--white); font-size: 14px; color: var(--grey-80); }
.chip.is-active { background: var(--blue-90); border-color: var(--blue-90); color: var(--white); }

/* Banner / notification */
.banner { display: flex; gap: var(--space-m); align-items: flex-start; padding: var(--space-m); border-left: 4px solid var(--blue-50); background: var(--blue-10); font-size: 14px; }
.banner--error { border-color: var(--red-50); background: var(--red-10); }
.banner--success { border-color: var(--green-50); background: var(--green-10); }
.banner--warning { border-color: var(--orange-50); background: var(--orange-10); }
.banner svg { width: 20px; height: 20px; flex: none; }

/* Data table */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px var(--space-m); background: var(--grey-10); color: var(--grey-80); font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px var(--space-m); border-bottom: 1px solid var(--grey-10); vertical-align: middle; }
.table tbody tr:hover { background: var(--grey-5); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }

/* Liste de documents */
.doc-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); }
.doc { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-m); align-items: center; padding: var(--space-m) var(--space-l); border-bottom: 1px solid var(--grey-10); }
.doc:last-child { border-bottom: 0; }
.doc__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue-10); color: var(--blue-70); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.doc__name { font-weight: 500; color: var(--blue-90); }
.doc__meta { display: flex; flex-wrap: wrap; gap: var(--space-m); font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.doc__path { font-size: 13px; color: var(--text-muted); }

/* Side navigation (arborescence des rubriques) */
.layout-side { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-xl); align-items: start; padding-bottom: var(--space-3xl); }
.side-nav { position: sticky; top: calc(var(--header-h) + var(--space-m)); background: var(--surface); border: 1px solid var(--border); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.side-nav__title { padding: var(--space-m) var(--space-l); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1px solid var(--grey-10); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 10px var(--space-l); color: var(--grey-80); font-size: 14px; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--grey-5); text-decoration: none; }
.side-nav a.is-active { border-left-color: var(--blue-50); background: var(--blue-10); color: var(--blue-90); font-weight: 700; }
.side-nav ul ul a { padding-left: 40px; font-size: 13px; }
.side-nav ul ul ul a { padding-left: 56px; }

/* Hero */
.hero { position: relative; color: var(--white); background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-90) 55%, var(--blue-70) 100%); overflow: hidden; }
/* Airbus Carbon Grid en bas du bandeau. */
.hero::after { content: ""; position: absolute; inset: 0; background: var(--blue-50); opacity: .85; pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.hero h1 { color: var(--white); font-size: 48px; font-weight: 700; max-width: 760px; }
.hero h1 .light { font-weight: 300; display: block; }
.hero p { max-width: 680px; font-size: 18px; color: rgba(255,255,255,.88); }

/* Dialog / popin */
.dialog { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--elev-09); }
.dialog::backdrop { background: rgba(1,19,51,.6); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-m) var(--space-l); border-bottom: 1px solid var(--grey-10); }
.dialog__head h2 { font-size: 20px; margin: 0; }
.dialog__body { padding: var(--space-l); }
.dialog__foot { display: flex; justify-content: flex-end; gap: var(--space-s); padding: var(--space-m) var(--space-l); border-top: 1px solid var(--grey-10); }

/* Tabs */
.tabs { display: flex; gap: var(--space-xs); border-bottom: 1px solid var(--border); margin-bottom: var(--space-l); overflow-x: auto; }
.tabs a { padding: 12px var(--space-m); color: var(--grey-60); font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--blue-90); text-decoration: none; }
.tabs a.is-active { color: var(--blue-90); border-bottom-color: var(--blue-50); font-weight: 700; }

/* Pagination */
.pagination { display: flex; gap: var(--space-xs); justify-content: center; margin: var(--space-l) 0; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--border); background: var(--white); font-size: 14px; color: var(--grey-80); }
.pagination .is-active { background: var(--blue-90); border-color: var(--blue-90); color: var(--white); }

/* Toast */
.toast { position: fixed; right: var(--space-l); bottom: var(--space-l); z-index: 100; min-width: 280px; padding: var(--space-m) var(--space-l); background: var(--grey-90); color: var(--white); box-shadow: var(--elev-09); font-size: 14px; }
.toast--success { border-left: 4px solid var(--green-50); }
.toast--error { border-left: 4px solid var(--red-50); }

/* Footer */
.footer { background: var(--blue-100); color: rgba(255,255,255,.75); font-size: 13px; margin-top: auto; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m); padding-top: var(--space-l); padding-bottom: var(--space-l); }
.footer a { color: var(--white); }
.footer__logo { width: 88px; color: var(--white); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }

.empty { padding: var(--space-2xl) var(--space-l); text-align: center; color: var(--text-muted); background: var(--surface); border: 1px dashed var(--grey-40); }

@media (max-width: 900px) {
  .layout-side { grid-template-columns: 1fr; }
  .side-nav { position: static; max-height: none; }
  .hero h1 { font-size: 34px; }
  .header__app { display: none; }
  .doc { grid-template-columns: 32px 1fr; }
  .doc > :last-child { grid-column: 2; }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--space-m); }
  .header__nav .label { display: none; }
}

/* Listes déroulantes : chevron des Airbus Icons à la place de la flèche du navigateur */
.select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20transform%3D%22translate(-1200%20-384)%22%20fill%3D%22%235c6670%22%3E%3Cpath%20d%3D%22M1207.41%20392.295L1212%20396.875L1216.59%20392.295L1218%20393.705L1212%20399.705L1206%20393.705L1207.41%20392.295Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px 22px; cursor: pointer; }
.select::-ms-expand { display: none; }

/* Lien d'évitement : invisible jusqu'à la première tabulation, mène au contenu principal */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--blue-90); font-weight: 700; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); transform: translateY(-150%); transition: transform .15s ease; }
.skip-link:focus { transform: none; outline: 2px solid var(--blue-50); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
main[id]:focus { outline: none; }
