/* === COULEUR DU RÔLE ========================================== */
:root {
  --accent:      #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #dbeafe;
}

/* === NAVIGATION PAR ONGLETS =================================== */
.nav-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 57px;
  z-index: 9;
}
.nav-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .2s, border-color .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.nav-tab .material-icons-round { font-size: 18px; }
.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* === FORMULAIRE DE DEMANDE ==================================== */
.form-card {
  background: white;
  margin: 16px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === UPLOAD FICHIER =========================================== */
.file-zone {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.file-zone:hover,
.file-zone.drag  { border-color: var(--accent); background: var(--accent-light); }
.file-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-zone .material-icons-round { font-size: 32px; color: var(--gray-400); display: block; margin-bottom: 8px; }
.file-zone p     { font-size: 13px; color: var(--gray-500); }
.file-zone .file-types { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

.file-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.file-preview .material-icons-round { color: var(--accent); font-size: 22px; }
.file-preview .file-name            { font-weight: 600; flex: 1; }
.file-preview .file-size            { color: var(--gray-500); }
.file-preview .btn-remove           { background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 0; }

.progress-bar {
  height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; margin-top: 8px;
}
.progress-bar-fill {
  height: 100%; background: var(--accent);
  border-radius: 2px;
  transition: width .2s;
}

/* === LISTE MES DEMANDES ======================================= */
.requests-list { padding: 16px; }

.request-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}
.request-card-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
}
.request-card-header .ref   { font-size: 13px; font-weight: 700; color: var(--accent); }
.request-card-header .date  { font-size: 12px; color: var(--gray-400); }
.request-card-body          { padding: 12px 16px; }
.request-card-body .montant { font-size: 18px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.request-card-body .meta    { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.request-card-footer        { padding: 10px 16px; background: var(--gray-50); display: flex; align-items: center; justify-content: space-between; }
.request-card-footer .comment { font-size: 12px; color: var(--gray-500); font-style: italic; flex: 1; }

/* Progress timeline */
.timeline {
  display: flex; align-items: center;
  padding: 10px 16px;
  background: var(--gray-50);
  gap: 0;
}
.tl-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
  position: relative;
}
.tl-step::after {
  content: '';
  position: absolute;
  top: 10px; left: 50%; right: -50%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.tl-step:last-child::after { display: none; }
.tl-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.tl-dot .material-icons-round { font-size: 12px; color: white; }
.tl-label { font-size: 10px; color: var(--gray-400); margin-top: 4px; text-align: center; }

.tl-step.done   .tl-dot { background: var(--success); }
.tl-step.done   .tl-dot::after { background: var(--success); }
.tl-step.done   .tl-label { color: var(--success); }
.tl-step.active .tl-dot { background: var(--accent); }
.tl-step.active .tl-label { color: var(--accent); font-weight: 600; }
.tl-step.ko     .tl-dot { background: var(--danger); }
.tl-step.ko     .tl-label { color: var(--danger); }

/* Lien fichier */
.file-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 500;
}
.file-link:hover { text-decoration: underline; }
