/* === Cockpit CGP — UI =========================================
 * Palette cohérente avec le template PDF (§5.2 cahier des charges) :
 * ivoire chaud, accent vert-forêt, or pour les montants mis en exergue.
 * ============================================================= */

:root {
  --canvas: #FDFCF8;
  --paper: #FFFFFF;
  --sand: #F4F0E7;
  --rule: #E3DDCD;
  --ink: #141416;
  --ink-soft: #4A4F58;
  --muted: #7C7F87;
  --accent: #1E4D3F;
  --accent-soft: #2D6E5A;
  --accent-tint: #EEF4F0;
  --gold: #B5824C;
  --gold-tint: #F7EFE1;
  --alert: #A84A3A;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, 0.04);
  --shadow-md: 0 4px 18px rgba(20, 20, 22, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 32px; line-height: 1.1; font-weight: 400; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; font-family: 'Inter', sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.dim { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

[x-cloak] { display: none !important; }

/* --- Nav --------------------------------------------------------- */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.1) blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: 'Fraunces', serif; font-size: 20px; letter-spacing: 0.01em; color: var(--ink); font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: 40px; flex: 1; }
.nav-links a { padding: 6px 14px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; }
.nav-links a.active { background: var(--accent-tint); color: var(--accent); text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; }

.status-banner {
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12px;
  text-align: center;
  padding: 6px 20px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule);
}

.app-main { flex: 1; padding: 40px 0 60px 0; }
.app-footer {
  border-top: 1px solid var(--rule);
  padding: 18px 32px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.app-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.app-footer a:hover { text-decoration: underline; }

/* --- Conteneurs -------------------------------------------------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 680px; }
.container.wide   { max-width: 1400px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head h1 { margin-bottom: 6px; }
.page-head-dossier { border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 30px; }
.page-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumb { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.breadcrumb span { margin: 0 4px; }

/* --- Buttons ----------------------------------------------------- */
.btn-primary, .btn-ghost, .btn-link, .btn-icon {
  font-family: inherit;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
  border: none;
  font-weight: 500;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary span:first-child { font-size: 18px; line-height: 1; }
.btn-large { padding: 14px 28px; font-size: 15px; width: 100%; justify-content: center; margin-top: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 18px;
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-link { background: transparent; color: var(--accent); padding: 6px 10px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }

.btn-icon {
  background: transparent;
  color: var(--muted);
  width: 28px; height: 28px;
  padding: 0;
  font-size: 14px;
}
.btn-icon:hover { color: var(--alert); background: var(--sand); }

.btn-icon-danger {
  background: transparent;
  color: var(--muted);
  width: 28px; height: 28px;
  padding: 0;
  font-size: 13px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.12s;
}
.btn-icon-danger:hover { color: var(--alert); background: rgba(168, 74, 58, 0.08); }

.btn-danger {
  background: transparent;
  color: var(--alert);
  padding: 8px 16px;
  border: 1px solid rgba(168, 74, 58, 0.25);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.btn-danger:hover { background: var(--alert); color: var(--paper); border-color: var(--alert); }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }

.inline-form { display: inline-block; }

/* Modale de confirmation */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 22, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: var(--paper);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.modal h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.modal p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; line-height: 1.55; }
.modal code { background: var(--sand); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--accent); }
.modal input { margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* --- Login ------------------------------------------------------- */
.login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 10%, var(--gold-tint) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, var(--accent-tint) 0%, transparent 40%),
    var(--canvas);
}
.login-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 48px 44px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-title { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 400; margin-bottom: 6px; padding-top: 10px; }
.login-sub { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.login-form { text-align: left; }
.login-form .field { margin-bottom: 20px; }
.login-form .btn-primary { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.login-legal {
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.login-powered {
  text-align: center;
  margin: 14px 0 0 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.login-powered a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.login-powered a:hover { text-decoration: underline; }

.form-error {
  background: rgba(168, 74, 58, 0.08);
  color: var(--alert);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* --- Forms ------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.field input, .field select, .field textarea, input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
}
.field input:focus, .field select:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.field-grid.cols-1 { grid-template-columns: 1fr; }
.field-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.field.col-span-2 { grid-column: span 2; }

/* --- Dashboard table --------------------------------------------- */
.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.data thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.data tbody td { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.data tbody tr:last-child td { border-bottom: none; }
.data tbody tr:hover { background: rgba(30, 77, 63, 0.02); }
.data .right { text-align: right; }
.cell-primary { font-weight: 500; color: var(--ink); }
.cell-sub { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: ui-monospace, monospace; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-brut      { background: var(--sand); color: var(--ink-soft); }
.pill-en_cours  { background: var(--gold-tint); color: var(--gold); }
.pill-valide    { background: var(--accent-tint); color: var(--accent); }
.pill-archive   { background: #EEE; color: var(--muted); }

.empty {
  text-align: center;
  padding: 80px 40px;
  border: 2px dashed var(--rule);
  border-radius: 16px;
  background: var(--paper);
}
.empty-mark { font-size: 56px; color: var(--rule); margin-bottom: 16px; font-family: 'Fraunces', serif; }
.empty h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 8px; }

/* --- Upload ------------------------------------------------------ */
.upload-form { margin-top: 20px; }
.drop-zone {
  display: block;
  border: 2px dashed var(--rule);
  border-radius: 16px;
  padding: 48px 24px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.drop-zone:hover { border-color: var(--accent); background: var(--accent-tint); }
.drop-zone[data-dragover="true"] { border-color: var(--accent); background: var(--accent-tint); transform: scale(1.01); }
.drop-zone.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-tint); padding: 20px 24px; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone-sm { padding: 24px; }
.drop-inner strong { display: block; font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 4px; }
.drop-inner span { color: var(--muted); font-size: 13px; }
.drop-icon { font-size: 40px; color: var(--accent); margin-bottom: 12px; }

.drop-file {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.drop-file-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drop-file-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.drop-file-body strong { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink); }
.drop-file-body span { font-size: 13px; margin-top: 2px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.note-block {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

/* --- Dossier editor --------------------------------------------- */
.dossier-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 100px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.1s ease;
}
.tab:hover { background: var(--sand); }
.tab.is-active { background: var(--accent); color: var(--paper); }
.tab-icon {
  width: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--accent);
  opacity: 0.8;
}
.tab.is-active .tab-icon { color: var(--paper); opacity: 1; }

.dossier-content > section { min-height: 400px; }
.tab-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.tab-head h2 { font-weight: 400; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 16px; color: var(--ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.title-input {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  flex: 1;
}
.title-input:focus { box-shadow: none !important; }

.num-input { font-variant-numeric: tabular-nums; text-align: right; }

/* KPI cards cockpit */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
}
.kpi-card.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: var(--paper);
  border: none;
}
.kpi-card.accent .kpi-label { color: rgba(255,255,255,0.8); }
.kpi-card.accent .kpi-sub { color: rgba(255,255,255,0.75); }
.kpi-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.kpi-value { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi-sub { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* Lists (repeaters) */
.rep-list { display: flex; flex-direction: column; gap: 8px; }
.rep-list-col { display: flex; flex-direction: column; gap: 16px; }
.rep-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--sand);
  border-radius: 8px;
}

/* Strategy items */
.strat-item {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  gap: 14px;
  align-items: start;
  padding: 14px 14px 14px 16px;
  background: var(--sand);
  border-radius: 10px;
  border-left: 2px solid var(--accent);
}
.strat-item-highlight {
  background: var(--gold-tint);
  border-left-color: var(--gold);
}
.strat-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  padding-top: 2px;
}
.strat-num-gold { color: var(--gold); }
.strat-body { display: flex; flex-direction: column; gap: 10px; }
.strat-body textarea { resize: vertical; }

/* Intros chapitres — grid compact 2 colonnes */
.chap-intros-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .chap-intros-grid { grid-template-columns: 1fr; } }
.chap-intro-field { display: flex; flex-direction: column; gap: 5px; }
.chap-intro-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chap-intro-field textarea {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
  resize: vertical;
  min-height: 44px;
}

/* Bouton IA */
.btn-ai {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(181, 130, 76, 0.25);
  transition: all 0.15s ease;
}
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(181, 130, 76, 0.35); }
.btn-ai:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ai-spark {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.ai-notice {
  margin-bottom: 20px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--gold-tint) 0%, var(--accent-tint) 100%);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.ai-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold-tint) 0%, rgba(238, 244, 240, 0.5) 100%);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ai-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--paper);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Upload loading panel */
.uploading-panel {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--gold);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--canvas) 0%, var(--gold-tint) 100%);
}
.uploading-panel h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  margin: 18px 0 6px 0;
  color: var(--accent);
}
.upload-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 3px solid var(--gold-tint);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.upload-steps {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.upload-steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.upload-steps .step.done { color: var(--accent); }
.upload-steps .step.active { color: var(--gold); }
.upload-steps .step .mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.upload-steps .step.done .mark { background: var(--accent); color: var(--paper); }
.upload-steps .step.active .mark { background: var(--gold); color: var(--paper); }

/* Legend list (synthèse) */
.legend-list { list-style: none; padding: 0; margin: 0; }
.legend-list li {
  display: grid;
  grid-template-columns: 16px 1fr auto 80px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.legend-list li:last-child { border: none; }
.legend-list .dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-list .amount { font-variant-numeric: tabular-nums; font-weight: 500; }
.legend-list .pct { color: var(--gold); font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--muted);
}
.checklist li.ok { color: var(--accent); }
.checklist .mark {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--rule);
  display: inline-block;
}
.checklist li.ok .mark { background: var(--accent); border-color: var(--accent); }

.generate-form { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.check-line { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; }
.check-line input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* Warnings */
.warnings {
  background: rgba(181, 130, 76, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 20px;
}
.warnings h4 { font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.05em; }
.warnings ul { font-size: 12px; color: var(--ink-soft); margin: 0; padding-left: 18px; }

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.file-list li:last-child { border: none; }

@media (max-width: 900px) {
  .dossier-grid { grid-template-columns: 1fr; }
  .tabs-vertical {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }
  .tab { flex-shrink: 0; }
}
