/* FiveHeberg Travaux — couche portail (s'appuie sur fiveheberg.css) */

/* Bootstrap : forcer thème sombre (évite le gris #212529 / #6c757d sur les tableaux) */
body.fh-body,
body.fh-body--portal {
  --bs-body-color: #e8f0fc;
  --bs-body-bg: #060d18;
  --bs-secondary-color: #a8c0e0;
  --bs-emphasis-color: #ffffff;
  --bs-table-color: #e8f0fc;
  --bs-table-hover-color: #ffffff;
  --bs-table-striped-color: #e8f0fc;
  --bs-table-active-color: #ffffff;
  --bs-border-color: rgba(77, 163, 255, 0.2);
  --bs-form-control-bg: #0a1628;
  --bs-form-control-color: #e8f0fc;
  --bs-form-select-bg: #0a1628;
  --bs-form-select-color: #e8f0fc;
  --bs-modal-bg: #0c1829;
  --bs-modal-color: #e8f0fc;
  color-scheme: dark;
}

.fh-portal {
  padding: 1.75rem 0 3.5rem;
  min-height: calc(100vh - 64px);
  position: relative;
}

.fh-portal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(59, 158, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.fh-portal__inner {
  max-width: 1320px;
  position: relative;
  z-index: 1;
}

/* —— En-tête de page —— */
.fh-nav__link.is-active,
.fh-nav__item.is-current .fh-nav__link {
  color: var(--fh-accent);
  background: rgba(59, 158, 255, 0.1);
}

/* Nav desktop — plus d'air entre les liens (hover / actif) */
@media (min-width: 992px) {
  .fh-nav__list {
    gap: 0.45rem;
  }

  .fh-nav__link {
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
  }

  .fh-nav__link:hover,
  .fh-nav__link.is-active,
  .fh-nav__item.is-current .fh-nav__link {
    background: rgba(59, 158, 255, 0.1);
  }
}

.fh-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 24, 41, 0.88), rgba(8, 16, 28, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fh-dashboard-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

.fh-dashboard-intro__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.fh-dashboard-intro__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #a8c0e0;
}

.fh-page-header__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-accent);
}

.fh-page-header__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--fh-text);
  line-height: 1.15;
}

.fh-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fh-breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--fh-muted);
}

.fh-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.45;
}

.fh-breadcrumb__item a {
  color: var(--fh-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.fh-breadcrumb__item a:hover {
  color: var(--fh-accent);
}

.fh-breadcrumb__item.is-active span {
  color: var(--fh-text);
  font-weight: 600;
}

/* —— Cartes statistiques (premium) —— */
.fh-stat-card {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.18);
  background: linear-gradient(160deg, rgba(14, 28, 48, 0.95), rgba(8, 14, 26, 0.98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fh-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fh-accent), var(--fh-accent-2));
  opacity: 0.85;
}

.fh-stat-card--info::before { background: linear-gradient(90deg, #3b9eff, #1d6fd8); }
.fh-stat-card--success::before { background: linear-gradient(90deg, #34d399, #059669); }
.fh-stat-card--warning::before { background: linear-gradient(90deg, #fbbf24, #d97706); }
.fh-stat-card--danger::before { background: linear-gradient(90deg, #f87171, #dc2626); }

.fh-stat-card__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.fh-stat-card--success .fh-stat-card__glow { background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%); }
.fh-stat-card--warning .fh-stat-card__glow { background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%); }
.fh-stat-card--danger .fh-stat-card__glow { background: radial-gradient(circle, rgba(248, 113, 113, 0.15), transparent 70%); }

.fh-stat-card__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  position: relative;
  z-index: 1;
}

.fh-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 158, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 158, 255, 0.1);
}

.fh-stat-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(59, 158, 255, 0.14);
  color: #5eb8ff;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fh-stat-card--info .fh-stat-card__icon { background: rgba(59, 158, 255, 0.16); color: #5eb8ff; }
.fh-stat-card--success .fh-stat-card__icon { background: rgba(52, 211, 153, 0.16); color: #4ade9a; }
.fh-stat-card--warning .fh-stat-card__icon { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }
.fh-stat-card--danger .fh-stat-card__icon { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }

.fh-stat-card__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a8c0e0 !important;
}

.fh-stat-card__value {
  margin: 0.35rem 0 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #c5d9f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
}

/* —— Panneaux / cartes —— */
.fh-panel {
  background: linear-gradient(165deg, rgba(12, 24, 41, 0.94), rgba(6, 12, 22, 0.98));
  border: 1px solid rgba(77, 163, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.fh-panel--table {
  border-radius: 20px;
}

.fh-panel__header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.fh-panel__header--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fh-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-accent);
}

.fh-panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.fh-panel__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fh-accent);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 158, 255, 0.25);
  background: rgba(59, 158, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fh-panel__action:hover {
  background: rgba(59, 158, 255, 0.16);
  border-color: rgba(59, 158, 255, 0.45);
  color: #7ec3ff;
}

.fh-panel__body {
  padding: 1.25rem 1.5rem;
}

.fh-panel__body.p-0 {
  padding: 0 !important;
}

/* Compatibilité anciennes classes Stexo */
.wrapper { padding: 0; }
.accountbg,
.error-bg,
.header-bg { display: none !important; }

.card {
  background: var(--fh-bg-elevated) !important;
  border: 1px solid var(--fh-border) !important;
  border-radius: var(--fh-radius) !important;
  box-shadow: var(--fh-shadow) !important;
  color: var(--fh-text) !important;
}

.card-body,
.card-heading {
  color: var(--fh-text);
}

.page-title,
.page-title-box h4,
.header-title,
.font-16,
.font-14 {
  color: var(--fh-text) !important;
}

.page-title-box {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  background: transparent !important;
  margin: 0;
  padding: 0;
}

.breadcrumb-item,
.breadcrumb-item a,
.breadcrumb-item.active {
  color: var(--fh-muted) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--fh-muted) !important;
}

/* —— Tableaux —— */
.fh-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.fh-portal .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--fh-text);
  --bs-table-border-color: var(--fh-border);
  --bs-table-hover-bg: rgba(59, 158, 255, 0.08);
  --bs-table-hover-color: var(--fh-text);
  margin-bottom: 0;
  color: var(--fh-text) !important;
}

.fh-portal .table thead {
  background: rgba(59, 158, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 2;
}

.fh-portal .table thead th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8eb5e8 !important;
  border-bottom: 1px solid rgba(77, 163, 255, 0.2);
  padding: 1rem 1.15rem;
  white-space: nowrap;
}

.fh-portal .fh-tasks-table tbody tr {
  border-bottom: 1px solid rgba(77, 163, 255, 0.08);
  transition: background 0.2s ease;
}

.fh-portal .fh-tasks-table tbody tr:last-child {
  border-bottom: none;
}

.fh-portal .fh-tasks-table tbody tr:hover {
  background: rgba(59, 158, 255, 0.06);
}

.fh-portal .table tbody td {
  color: var(--fh-text) !important;
  vertical-align: middle;
  border-color: transparent;
  padding: 1.05rem 1.15rem;
  font-size: 0.9rem;
}

.fh-table__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
  line-height: 1.4;
  max-width: 100%;
}

.fh-table__link:hover {
  color: var(--fh-accent) !important;
  gap: 0.65rem;
}

.fh-table__link-arrow {
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--fh-accent);
}

.fh-table__link:hover .fh-table__link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.fh-table__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.18);
  border: 1px solid rgba(120, 190, 255, 0.35);
  color: #e8f4ff !important;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.fh-table__chip i {
  font-size: 0.7rem;
  opacity: 0.85;
}

.fh-table__chip--empty {
  background: rgba(143, 163, 190, 0.1);
  border-color: rgba(143, 163, 190, 0.25);
  color: #b8cce8 !important;
  font-weight: 500;
}

.fh-table__date {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #f0f6ff !important;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.fh-table__date-day {
  color: #f0f6ff !important;
}

.fh-table__time {
  color: #b8cce8 !important;
  font-size: 0.82rem;
  font-weight: 500;
}

.fh-table__muted {
  color: var(--fh-muted) !important;
}

.fh-table__empty {
  text-align: center;
  color: var(--fh-muted) !important;
  padding: 2.5rem 1rem !important;
}

.fh-table__progress-cell {
  min-width: 160px;
}

/* —— Badges —— */
.fh-badge,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-info,
.bg-info {
  background: rgba(59, 158, 255, 0.15) !important;
  color: #7ec3ff !important;
  border-color: rgba(59, 158, 255, 0.35);
}

.fh-badge--info,
.badge-primary,
.bg-primary {
  background: rgba(59, 158, 255, 0.15) !important;
  color: #7ec3ff !important;
  border-color: rgba(59, 158, 255, 0.35);
}

.fh-badge--success,
.badge-success,
.bg-success {
  background: rgba(52, 211, 153, 0.15) !important;
  color: #6ee7b7 !important;
  border-color: rgba(52, 211, 153, 0.35);
}

.fh-badge--warning,
.badge-warning,
.bg-warning {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fcd34d !important;
  border-color: rgba(251, 191, 36, 0.35);
}

.fh-badge--danger,
.badge-danger,
.bg-danger {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.35);
}

.fh-badge--muted {
  background: rgba(143, 163, 190, 0.15) !important;
  color: #c5d5e8 !important;
  border-color: rgba(143, 163, 190, 0.3) !important;
  text-transform: none;
  font-weight: 600;
}

/* —— Barre de progression —— */
.fh-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8fa3be;
}

.fh-progress__label strong {
  color: var(--fh-accent);
  font-weight: 800;
}

.fh-progress__bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fh-progress__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--fh-accent-2), var(--fh-accent));
  box-shadow: 0 0 12px rgba(59, 158, 255, 0.4);
}

.fh-progress--complete .fh-progress__bar > span {
  background: linear-gradient(90deg, #059669, #34d399);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.fh-progress--complete .fh-progress__label strong {
  color: #34d399;
}

.fh-progress--mid .fh-progress__bar > span {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.fh-progress--low .fh-progress__bar > span {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.fh-progress--none .fh-progress__bar > span {
  background: rgba(143, 163, 190, 0.4);
  box-shadow: none;
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--fh-accent-2), var(--fh-accent)) !important;
}

/* —— Formulaires —— */
.form-control,
.form-select,
select.form-control {
  background-color: #0a1628 !important;
  background-image: none;
  border: 1px solid rgba(77, 163, 255, 0.22) !important;
  color: #e8f0fc !important;
  border-radius: 12px !important;
  padding: 0.65rem 0.9rem;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238fa8c8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.25rem !important;
}

.form-select option,
.form-control option,
select option {
  background-color: #0c1829;
  color: #e8f0fc;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
  border-color: var(--fh-accent) !important;
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.15) !important;
}

.form-control::placeholder {
  color: var(--fh-muted);
  opacity: 0.7;
}

label {
  color: var(--fh-muted);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* —— Boutons —— */
.btn-primary {
  background: linear-gradient(135deg, var(--fh-accent), var(--fh-accent-2)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 12px !important;
  padding: 0.55rem 1.1rem;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-success {
  background: linear-gradient(135deg, #34d399, #059669) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 12px !important;
}

.btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 12px !important;
}

.btn-info {
  background: rgba(59, 158, 255, 0.2) !important;
  border: 1px solid var(--fh-border) !important;
  color: var(--fh-accent) !important;
  font-weight: 700;
  border-radius: 12px !important;
}

.btn-light {
  background: var(--fh-surface) !important;
  border: 1px solid var(--fh-border) !important;
  color: var(--fh-text) !important;
  font-weight: 600;
  border-radius: 12px !important;
}

.btn-light:hover {
  border-color: var(--fh-accent) !important;
  color: var(--fh-accent) !important;
}

/* —— Page auth / recherche —— */
.fh-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

.fh-auth-card {
  width: 100%;
  max-width: 460px;
  padding: 2rem;
  background: var(--fh-bg-elevated);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
}

.fh-auth-card__logo {
  display: block;
  margin: 0 auto 1.5rem;
}

.fh-auth-card__title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fh-text);
}

.fh-auth-card__lead {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--fh-muted);
  font-size: 0.95rem;
}

.fh-auth-card__footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}

.fh-auth-card__footer a {
  color: var(--fh-accent);
  text-decoration: none;
}

.fh-auth-card__footer a:hover {
  text-decoration: underline;
}

/* —— Profil staff —— */
.fh-profile {
  text-align: center;
  margin-bottom: 1.5rem;
}

.fh-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--fh-border);
  object-fit: cover;
}

.fh-profile__name {
  margin: 0.75rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fh-text);
}

.fh-chat-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--fh-border);
}

.fh-chat-item:last-child {
  border-bottom: none;
}

.fh-chat-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fh-chat-item__meta {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fh-text);
}

.fh-chat-item__time {
  font-weight: 500;
  color: var(--fh-muted);
  font-size: 0.8rem;
}

.fh-chat-item__text {
  margin: 0;
  color: var(--fh-muted);
  line-height: 1.5;
}

/* —— Footer portail —— */
.fh-portal-footer {
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(77, 163, 255, 0.12);
  text-align: center;
  color: #8fa3be;
  font-size: 0.85rem;
}

.fh-portal-footer i {
  color: #f87171;
}

/* —— Nav utilisateur travaux —— */
.fh-nav__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fh-nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--fh-border);
  object-fit: cover;
}

.fh-nav__user-menu {
  position: relative;
}

.fh-nav__user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  color: var(--fh-text);
  cursor: pointer;
  font-size: 0.875rem;
}

.fh-nav__user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--fh-bg-elevated);
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  box-shadow: var(--fh-shadow);
  display: none;
  z-index: 1100;
}

.fh-nav__user-menu.is-open .fh-nav__user-dropdown {
  display: block;
}

.fh-nav__user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: var(--fh-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: background 0.15s ease;
}

.fh-nav__user-dropdown a:hover {
  background: var(--fh-surface);
  color: var(--fh-accent);
}

.fh-nav__user-dropdown a.is-danger {
  color: #f87171;
}

.fh-nav__user-dropdown hr {
  margin: 0.35rem 0;
  border-color: var(--fh-border);
  opacity: 1;
}

/* —— Page erreur —— */
.fh-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.fh-error-card {
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--fh-bg-elevated);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
}

.fh-error-card img {
  margin-bottom: 1.5rem;
}

.fh-error-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--fh-text);
}

.fh-error-card p {
  color: var(--fh-muted);
  margin-bottom: 1.5rem;
}

.text-muted {
  color: var(--fh-muted) !important;
}

/* TinyMCE dark */
.fh-add-dossier__editor .tox-tinymce,
.fh-add-task__editor .tox-tinymce,
.fh-task-detail .tox-tinymce,
.fh-portal .tox-tinymce {
  border: 1px solid rgba(77, 163, 255, 0.22) !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #081220 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.fh-add-dossier__editor .tox .tox-toolbar-overlord,
.fh-add-dossier__editor .tox .tox-toolbar__primary,
.fh-add-task__editor .tox .tox-toolbar-overlord,
.fh-add-task__editor .tox .tox-toolbar__primary,
.fh-portal .tox .tox-toolbar-overlord,
.fh-portal .tox .tox-toolbar__primary {
  background: #0c1829 !important;
  border-bottom: 1px solid rgba(77, 163, 255, 0.12) !important;
}

.fh-add-dossier__editor .tox .tox-toolbar,
.fh-add-task__editor .tox .tox-toolbar,
.fh-portal .tox .tox-toolbar {
  background: transparent !important;
}

.fh-add-dossier__editor .tox .tox-tbtn,
.fh-add-task__editor .tox .tox-tbtn,
.fh-portal .tox .tox-tbtn {
  color: #9eb8d8 !important;
}

.fh-add-dossier__editor .tox .tox-tbtn:hover,
.fh-add-task__editor .tox .tox-tbtn:hover,
.fh-portal .tox .tox-tbtn:hover {
  background: rgba(59, 158, 255, 0.12) !important;
  color: #e8f0fc !important;
}

.fh-add-dossier__editor .tox .tox-tbtn--enabled,
.fh-add-dossier__editor .tox .tox-tbtn--enabled:hover,
.fh-add-task__editor .tox .tox-tbtn--enabled,
.fh-add-task__editor .tox .tox-tbtn--enabled:hover,
.fh-portal .tox .tox-tbtn--enabled,
.fh-portal .tox .tox-tbtn--enabled:hover {
  background: rgba(59, 158, 255, 0.18) !important;
  color: #ffffff !important;
}

.fh-add-dossier__editor .tox .tox-edit-area__iframe,
.fh-add-task__editor .tox .tox-edit-area__iframe,
.fh-portal .tox .tox-edit-area__iframe {
  background: #081220 !important;
}

.fh-add-dossier__editor .tox .tox-statusbar,
.fh-add-task__editor .tox .tox-statusbar,
.fh-portal .tox .tox-statusbar {
  background: #0a1424 !important;
  border-top: 1px solid rgba(77, 163, 255, 0.1) !important;
}

/* ══════════════════════════════════════════
   TOASTR — thème FiveHeberg
   ══════════════════════════════════════════ */

#toast-container {
  z-index: 99999;
  pointer-events: none;
}

#toast-container > div {
  pointer-events: auto;
  width: 340px;
  max-width: calc(100vw - 2rem);
  padding: 0.95rem 1.1rem 0.95rem 3.15rem;
  margin: 0 0 0.75rem !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: 0 0 !important;
  background-position: 0 0 !important;
  background-color: #0c1829 !important;
  background: linear-gradient(155deg, rgba(16, 30, 52, 0.98) 0%, rgba(8, 14, 26, 0.96) 100%) none !important;
  border: 1px solid rgba(77, 163, 255, 0.18) !important;
  border-radius: 14px !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
  color: #e8f0fc !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  opacity: 1 !important;
  overflow: hidden;
}

#toast-container > div:hover {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(77, 163, 255, 0.2) inset !important;
}

#toast-container .toast-title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

#toast-container .toast-message {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: #b8d0ea !important;
  word-wrap: break-word;
}

#toast-container .toast-close-button {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  float: none;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.25;
  text-shadow: none;
  color: #8fa8c8 !important;
  opacity: 0.75;
  transition: color 0.15s ease, opacity 0.15s ease;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
  color: #ffffff !important;
  opacity: 1;
  text-decoration: none;
}

#toast-container .toast-progress {
  height: 3px;
  opacity: 1;
  background: linear-gradient(90deg, #1d6fd8, #5eb8ff) !important;
}

/* Icône à gauche — neutralise le sprite Toastr (fond qui se répète) */
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-info,
#toast-container > .toast-warning {
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: 0 0 !important;
}

#toast-container > .toast-success::before,
#toast-container > .toast-error::before,
#toast-container > .toast-info::before,
#toast-container > .toast-warning::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1;
}

#toast-container > .toast-success {
  border-color: rgba(52, 211, 153, 0.28) !important;
  background: linear-gradient(155deg, rgba(6, 46, 28, 0.55) 0%, rgba(8, 14, 26, 0.96) 55%) none !important;
  background-image: none !important;
}

#toast-container > .toast-success::before {
  content: "\f00c";
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

#toast-container > .toast-success .toast-progress {
  background: linear-gradient(90deg, #059669, #34d399) !important;
}

#toast-container > .toast-error {
  border-color: rgba(248, 113, 113, 0.3) !important;
  background: linear-gradient(155deg, rgba(60, 16, 16, 0.55) 0%, rgba(8, 14, 26, 0.96) 55%) none !important;
  background-image: none !important;
}

#toast-container > .toast-error::before {
  content: "\f00d";
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

#toast-container > .toast-error .toast-progress {
  background: linear-gradient(90deg, #dc2626, #f87171) !important;
}

#toast-container > .toast-warning {
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: linear-gradient(155deg, rgba(55, 35, 8, 0.55) 0%, rgba(8, 14, 26, 0.96) 55%) none !important;
  background-image: none !important;
}

#toast-container > .toast-warning::before {
  content: "\f071";
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

#toast-container > .toast-warning .toast-progress {
  background: linear-gradient(90deg, #d97706, #fbbf24) !important;
}

#toast-container > .toast-info {
  border-color: rgba(59, 158, 255, 0.3) !important;
  background: linear-gradient(155deg, rgba(12, 36, 72, 0.55) 0%, rgba(8, 14, 26, 0.96) 55%) none !important;
  background-image: none !important;
}

#toast-container > .toast-info::before {
  content: "\f129";
  color: #7ec8ff;
  background: rgba(59, 158, 255, 0.14);
  border: 1px solid rgba(59, 158, 255, 0.28);
}

#toast-container > .toast-info .toast-progress {
  background: linear-gradient(90deg, #1d6fd8, #5eb8ff) !important;
}

@media (max-width: 575.98px) {
  #toast-container.toast-top-right,
  #toast-container.toast-bottom-right,
  #toast-container.toast-top-left,
  #toast-container.toast-bottom-left {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  #toast-container > div {
    width: 100%;
  }
}

/* Utilitaires */
.text-white { color: var(--fh-text) !important; }
.m-b-30 { margin-bottom: 1.5rem !important; }
.m-t-20 { margin-top: 1.25rem !important; }
.m-t-10 { margin-top: 0.65rem !important; }
.m-l-5 { margin-left: 0.35rem !important; }

/* —— Pages détail (tâche / dossier) —— */
.email-leftbar {
  float: left;
  width: 280px;
  margin-bottom: 1.5rem;
}

.email-rightbar {
  margin-left: 300px;
}

.email-leftbar.card {
  padding: 1.25rem;
}

.email-leftbar .mail-list a {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--fh-muted);
  text-decoration: none;
}

.email-leftbar .btn-block {
  width: 100%;
  margin-bottom: 0.5rem;
}

.main-timeline .timeline {
  background: var(--fh-bg-elevated);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.main-timeline .timeline .title {
  color: var(--fh-text);
  font-size: 1rem;
  font-weight: 700;
}

.main-timeline .timeline .year {
  color: var(--fh-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.modal-content {
  background: var(--fh-bg-elevated) !important;
  border: 1px solid var(--fh-border) !important;
  color: var(--fh-text) !important;
  border-radius: var(--fh-radius) !important;
}

/* Fix : fiveheberg.css force position:relative sur les enfants directs de body */
.fh-body > .modal,
body.fh-body .modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1060 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 !important;
  /* Ne pas forcer display:flex — laisse Bootstrap gérer l'animation fade */
}

.fh-body > .modal .modal-dialog,
body.fh-body .modal .modal-dialog {
  margin: 1rem auto;
  width: calc(100% - 2rem);
  max-width: 860px;
  max-height: calc(100vh - 2rem);
  pointer-events: auto;
}

.fh-body > .modal .modal-dialog.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 2rem);
}

.fh-body > .modal .modal-content,
body.fh-body .modal .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.fh-body > .modal .modal-body,
body.fh-body .modal .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1055 !important;
}

body.fh-modal-open {
  overflow: hidden !important;
  padding-right: var(--fh-scrollbar-width, 0);
}

.modal-header {
  border-bottom-color: var(--fh-border) !important;
}

.modal-header .btn-close {
  filter: invert(1);
}

.fh-dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.fh-dossier-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--fh-bg-elevated);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  height: 100%;
}

.fh-dossier-card__id {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fh-accent);
}

.fh-dossier-card__meta {
  color: var(--fh-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .email-leftbar,
  .email-rightbar {
    float: none;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .fh-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fh-portal {
    padding-top: 1rem;
  }
}

/* —— Table tâches : contraste forcé (priorité max) —— */
body.fh-body .fh-portal .fh-tasks-table,
body.fh-body .fh-portal .fh-tasks-table > :not(caption) > * > *,
body.fh-body .fh-portal .fh-tasks-table tbody td,
body.fh-body .fh-portal .fh-tasks-table tbody td *:not(.fh-badge):not(.fh-progress__bar):not(.fh-progress__bar *) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.fh-body .fh-portal .fh-tasks-table thead th {
  color: #8eb5e8 !important;
  -webkit-text-fill-color: #8eb5e8 !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-table__chip {
  color: #e8f4ff !important;
  -webkit-text-fill-color: #e8f4ff !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-table__chip--empty {
  color: #d8e6f8 !important;
  -webkit-text-fill-color: #d8e6f8 !important;
  background: rgba(143, 163, 190, 0.2) !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-table__date,
body.fh-body .fh-portal .fh-tasks-table .fh-table__date-day {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 600 !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-table__time {
  color: #c5d9f2 !important;
  -webkit-text-fill-color: #c5d9f2 !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-table__link {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-table__link:hover {
  color: #3b9eff !important;
  -webkit-text-fill-color: #3b9eff !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-progress__label {
  color: #a8c0e0 !important;
}

body.fh-body .fh-portal .fh-tasks-table .fh-progress__label strong {
  color: #3b9eff !important;
}

/* Annule l'ancien style.css Stexo si encore chargé */
body.fh-body .table td,
body.fh-body .table th,
body.fh-body .table-hover tbody tr:hover {
  color: #e8f0fc !important;
}

/* ══════════════════════════════════════════
   DASHBOARD V3 — rendu pro / SaaS premium
   ══════════════════════════════════════════ */

.fh-dash .fh-portal__inner {
  max-width: 1120px;
}

.fh-dash.fh-portal {
  padding: 1.5rem 0 3rem;
}

.fh-dash.fh-portal::before {
  height: 320px;
  opacity: 0.35;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 158, 255, 0.14), transparent 65%);
}

/* —— Hero —— */
.fh-dash-hero {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(160deg, rgba(14, 26, 44, 0.92) 0%, rgba(8, 14, 26, 0.88) 100%);
  border: 1px solid rgba(77, 163, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.fh-dash-hero--compact {
  margin-bottom: 1.25rem;
}

.fh-dash-hero--compact .fh-dash-hero__top {
  margin-bottom: 0;
}

.fh-dash-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.25rem;
}

.fh-dash-hero__tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ec2ff;
  background: rgba(59, 158, 255, 0.08);
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: 6px;
}

.fh-dash-hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.fh-dash-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #a8c4e4;
}

.fh-dash-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.fh-dash-hero__toolbar {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-dash-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(77, 163, 255, 0.16);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fh-dash-search:focus-within {
  border-color: rgba(59, 158, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.1);
}

.fh-dash-search i {
  color: #5a7a9e;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.fh-dash-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #eef4fc;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.fh-dash-search input::placeholder {
  color: #5a7a9e;
}

.fh-dash-search__btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1d6fd8, #3b9eff);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.fh-dash-search__btn:hover {
  filter: brightness(1.08);
}

/* —— Stats —— */
.fh-dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .fh-dash-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.fh-dash-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(160deg, rgba(12, 22, 38, 0.9), rgba(8, 14, 26, 0.85));
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fh-dash-stat--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.fh-dash-stat--link:hover {
  border-color: rgba(59, 158, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.fh-dash-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.fh-dash-stat--info .fh-dash-stat__icon {
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.12);
}

.fh-dash-stat--success .fh-dash-stat__icon {
  color: #4ade9a;
  background: rgba(52, 211, 153, 0.12);
}

.fh-dash-stat--warning .fh-dash-stat__icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.fh-dash-stat--danger .fh-dash-stat__icon {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.fh-dash-stat__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fh-dash-stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.fh-dash-stat--info .fh-dash-stat__value { color: #7ec8ff; }
.fh-dash-stat--success .fh-dash-stat__value { color: #6ee7b7; }
.fh-dash-stat--warning .fh-dash-stat__value { color: #fde68a; }
.fh-dash-stat--danger .fh-dash-stat__value { color: #fca5a5; }

.fh-dash-stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #7a96b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Alerte —— */
.fh-dash-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid transparent;
}

.fh-dash-alert--danger {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.25), rgba(69, 10, 10, 0.2));
  border-color: rgba(248, 113, 113, 0.3);
}

.fh-dash-alert--success {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.28), rgba(6, 46, 22, 0.2));
  border-color: rgba(74, 222, 128, 0.28);
}

.fh-dash-alert--success .fh-dash-alert__icon {
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
}

.fh-dash-alert--success .fh-dash-alert__body p {
  color: #a7d4b8;
}

.fh-dash-alert--warning {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.28), rgba(69, 26, 3, 0.2));
  border-color: rgba(251, 191, 36, 0.28);
}

.fh-dash-alert--warning .fh-dash-alert__icon {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

.fh-dash-alert--warning .fh-dash-alert__body p {
  color: #d4c4a0;
}

.fh-dash-alert__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  font-size: 1rem;
  flex-shrink: 0;
}

.fh-dash-alert__body {
  flex: 1;
  min-width: 200px;
}

.fh-dash-alert__body strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.fh-dash-alert__body p {
  margin: 0;
  font-size: 0.82rem;
  color: #d4a8a8;
  line-height: 1.45;
}

.fh-dash-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* —— Sections & panels —— */
.fh-dash-section {
  margin-bottom: 1.25rem;
}

.fh-dash-section:last-child {
  margin-bottom: 0;
}

.fh-dash-panel {
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.75), rgba(8, 14, 26, 0.65));
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 18px;
}

.fh-dash-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.08);
}

.fh-dash-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fh-dash-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.1);
  flex-shrink: 0;
}

.fh-dash-section__icon--active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.fh-dash-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.fh-dash-section__sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #7a96b8;
}

.fh-dash-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5eb8ff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.fh-dash-section__link:hover {
  color: #9ed4ff;
}

/* —— Toolbar liste —— */
.fh-task-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.08);
}

.fh-task-toolbar__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  background: rgba(6, 12, 22, 0.6);
  border: 1px solid rgba(77, 163, 255, 0.14);
  border-radius: 12px;
}

.fh-task-toolbar__search:focus-within {
  border-color: rgba(59, 158, 255, 0.35);
}

.fh-task-toolbar__search i {
  color: #5a7a9e;
  font-size: 0.85rem;
}

.fh-task-toolbar__input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #eef4fc;
  font-size: 0.88rem;
  outline: none;
}

.fh-task-toolbar__input::placeholder {
  color: #5a7a9e;
}

.fh-task-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fh-filter-chip {
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa8c8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(77, 163, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fh-filter-chip:hover {
  color: #d0e4f8;
  border-color: rgba(59, 158, 255, 0.25);
  background: rgba(59, 158, 255, 0.06);
}

.fh-filter-chip.is-active {
  color: #ffffff;
  background: rgba(59, 158, 255, 0.18);
  border-color: rgba(59, 158, 255, 0.4);
}

.fh-filter-chip[data-fh-filter-type="incident"].is-active {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.fh-task-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.fh-task-toolbar__status,
.fh-task-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fh-task-toolbar__select-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7a96b8;
}

.fh-task-toolbar__select {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  color: #e8f0fc;
  background: rgba(6, 12, 22, 0.7);
  border: 1px solid rgba(77, 163, 255, 0.16);
  border-radius: 8px;
  outline: none;
}

.fh-task-toolbar__count {
  margin: 0 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b8cb0;
}

/* —— Liste tâches —— */
.fh-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fh-task-item {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fh-task-item:hover {
  background: rgba(12, 22, 38, 0.8);
  border-color: rgba(59, 158, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fh-task-item__accent {
  width: 3px;
  flex-shrink: 0;
  background: #3b9eff;
}

.fh-task-item--type-incident .fh-task-item__accent { background: #f87171; }
.fh-task-item--type-amelioration .fh-task-item__accent { background: #4ade9a; }
.fh-task-item--type-maintenance .fh-task-item__accent { background: #fbbf24; }
.fh-task-item--type-information .fh-task-item__accent { background: #5eb8ff; }

.fh-task-item__type-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #6b8cb0;
}

@media (min-width: 576px) {
  .fh-task-item__type-icon {
    display: flex;
    padding-left: 0.85rem;
  }

  .fh-task-item--type-incident .fh-task-item__type-icon { color: #fca5a5; }
  .fh-task-item--type-amelioration .fh-task-item__type-icon { color: #6ee7b7; }
  .fh-task-item--type-maintenance .fh-task-item__type-icon { color: #fde68a; }
  .fh-task-item--type-information .fh-task-item__type-icon { color: #7ec8ff; }
}

.fh-task-item__main {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem 0.85rem 0.85rem;
}

.fh-task-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.fh-task-item__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0f6ff;
  line-height: 1.35;
}

.fh-task-item__date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b8cb0;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.fh-task-item__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.fh-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a8c8e8;
  background: rgba(59, 158, 255, 0.08);
  border-radius: 5px;
}

.fh-tag i {
  font-size: 0.6rem;
  opacity: 0.75;
}

.fh-tag--muted {
  color: #7a96b8;
  background: rgba(143, 163, 190, 0.08);
}

.fh-dash .fh-badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  box-shadow: none;
}

.fh-task-item__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fh-task-item__progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.fh-task-item__progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.fh-task-item__progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d6fd8, #3b9eff);
  transition: width 0.4s ease;
}

.fh-task-item__progress.fh-progress--complete .fh-task-item__progress-bar {
  background: linear-gradient(90deg, #059669, #34d399);
}

.fh-task-item__progress.fh-progress--mid .fh-task-item__progress-bar {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.fh-task-item__progress.fh-progress--low .fh-task-item__progress-bar {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.fh-task-item__progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5eb8ff;
  min-width: 2rem;
  text-align: right;
}

.fh-task-item__progress.fh-progress--complete .fh-task-item__progress-label { color: #34d399; }

.fh-task-item__arrow {
  font-size: 0.7rem;
  color: rgba(94, 184, 255, 0.25);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.fh-task-item:hover .fh-task-item__arrow {
  color: #5eb8ff;
  transform: translateX(2px);
}

.fh-task-item--alert {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(127, 29, 29, 0.12);
}

.fh-task-item--alert:hover {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.18);
}

.fh-task-list__empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #7a96b8;
  background: rgba(8, 14, 26, 0.4);
  border: 1px dashed rgba(77, 163, 255, 0.15);
  border-radius: 14px;
}

.fh-task-list__empty i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  opacity: 0.35;
}

.fh-task-list__empty p {
  margin: 0;
  font-size: 0.88rem;
}

.fh-task-list__empty--hidden[hidden] {
  display: none !important;
}

@media (max-width: 575.98px) {
  .fh-dash-hero {
    padding: 1.15rem;
  }

  .fh-dash-hero__cta {
    width: 100%;
  }

  .fh-dash-search__btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .fh-dash-panel {
    padding: 1rem;
  }

  .fh-task-item__top {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* ══════════════════════════════════════════
   PAGE DÉTAIL TÂCHE — v2
   ══════════════════════════════════════════ */

.fh-task-detail .fh-portal__inner {
  max-width: 1140px;
}

.fh-task-detail .fh-badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  box-shadow: none;
}

.fh-task-detail__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fh-task-detail__nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.fh-task-detail__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  text-decoration: none;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fh-task-detail__jump:hover {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
}

.fh-task-detail__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa8c8;
  background: rgba(12, 22, 38, 0.6);
  border: 1px solid rgba(77, 163, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fh-task-detail__copy:hover {
  color: #5eb8ff;
  border-color: rgba(59, 158, 255, 0.3);
  background: rgba(14, 26, 44, 0.8);
}

.fh-task-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8fa8c8;
  text-decoration: none;
  background: rgba(12, 22, 38, 0.6);
  border: 1px solid rgba(77, 163, 255, 0.12);
  border-radius: 8px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fh-task-detail__back:hover {
  color: #5eb8ff;
  border-color: rgba(59, 158, 255, 0.3);
  background: rgba(14, 26, 44, 0.8);
}

/* Hero */
.fh-task-detail__hero {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem 1.25rem;
  background: linear-gradient(155deg, rgba(16, 30, 52, 0.95) 0%, rgba(8, 14, 26, 0.92) 55%, rgba(10, 18, 32, 0.9) 100%);
  border: 1px solid rgba(77, 163, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.fh-task-detail__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b9eff;
}

.fh-task-detail--type-incident .fh-task-detail__accent { background: linear-gradient(90deg, #b91c1c, #f87171, #fca5a5); }
.fh-task-detail--type-amelioration .fh-task-detail__accent { background: linear-gradient(90deg, #047857, #34d399, #6ee7b7); }
.fh-task-detail--type-maintenance .fh-task-detail__accent { background: linear-gradient(90deg, #b45309, #fbbf24, #fde68a); }
.fh-task-detail--type-information .fh-task-detail__accent { background: linear-gradient(90deg, #1d4ed8, #3b9eff, #7ec8ff); }

.fh-task-detail__hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .fh-task-detail__hero-grid {
    grid-template-columns: 1fr;
  }
}

.fh-task-detail__hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.fh-task-detail__type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.14);
  border: 1px solid rgba(59, 158, 255, 0.2);
}

.fh-task-detail--type-incident .fh-task-detail__type-icon { color: #fca5a5; background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.25); }
.fh-task-detail--type-amelioration .fh-task-detail__type-icon { color: #6ee7b7; background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.25); }
.fh-task-detail--type-maintenance .fh-task-detail__type-icon { color: #fde68a; background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.25); }

.fh-task-detail__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.fh-tag--node {
  color: #a8c8e8;
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.15);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.fh-task-detail__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.fh-task-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fh-task-detail__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: #9eb8d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 8px;
}

.fh-task-detail__meta-pill i {
  font-size: 0.68rem;
  color: #6b8cb0;
}

/* Progress ring + bar */
.fh-task-detail__hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 140px;
}

.fh-task-detail__progress-ring {
  position: relative;
  width: 88px;
  height: 88px;
}

.fh-task-detail__progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fh-task-detail__ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 3;
}

.fh-task-detail__ring-fill {
  fill: none;
  stroke: #3b9eff;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.fh-task-detail__progress-ring.fh-progress--complete .fh-task-detail__ring-fill { stroke: #34d399; }
.fh-task-detail__progress-ring.fh-progress--mid .fh-task-detail__ring-fill { stroke: #fbbf24; }
.fh-task-detail__progress-ring.fh-progress--low .fh-task-detail__ring-fill { stroke: #f87171; }

.fh-task-detail__ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.fh-task-detail__ring-value small {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8fa8c8;
  margin-left: 1px;
}

.fh-task-detail__hero-aside .fh-task-detail__progress {
  width: 100%;
  max-width: 160px;
}

.fh-task-detail__progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a96b8;
}

.fh-task-detail__progress-head strong {
  color: #5eb8ff;
}

.fh-task-detail__progress.fh-progress--complete .fh-task-detail__progress-head strong { color: #34d399; }
.fh-task-detail__progress.fh-progress--mid .fh-task-detail__progress-head strong { color: #fbbf24; }
.fh-task-detail__progress.fh-progress--low .fh-task-detail__progress-head strong { color: #f87171; }

.fh-task-detail__progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.fh-task-detail__progress-bar {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d6fd8, #5eb8ff);
  box-shadow: 0 0 12px rgba(59, 158, 255, 0.35);
  transition: width 0.5s ease;
}

.fh-task-detail__progress.fh-progress--none .fh-task-detail__progress-bar {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}

.fh-task-detail__progress.fh-progress--complete .fh-task-detail__progress-bar {
  background: linear-gradient(90deg, #059669, #34d399);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.fh-task-detail__progress.fh-progress--mid .fh-task-detail__progress-bar {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.fh-task-detail__progress.fh-progress--low .fh-task-detail__progress-bar {
  background: linear-gradient(90deg, #dc2626, #f87171);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
}

/* Status steps */
.fh-task-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-task-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-width: 72px;
}

.fh-task-steps__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.72rem;
  color: #5a7a9e;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(77, 163, 255, 0.15);
  transition: all 0.2s ease;
}

.fh-task-steps__item.is-done .fh-task-steps__dot {
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.15);
  border-color: rgba(59, 158, 255, 0.4);
}

.fh-task-steps__item.is-current .fh-task-steps__dot {
  color: #ffffff;
  background: linear-gradient(135deg, #1d6fd8, #3b9eff);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(59, 158, 255, 0.4);
}

.fh-task-detail--type-amelioration .fh-task-steps__item.is-current .fh-task-steps__dot {
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
}

.fh-task-steps__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5a7a9e;
  text-align: center;
}

.fh-task-steps__item.is-done .fh-task-steps__label,
.fh-task-steps__item.is-current .fh-task-steps__label {
  color: #c5d9f2;
}

.fh-task-steps__line {
  flex: 1;
  height: 2px;
  margin: 0 0.25rem;
  margin-bottom: 1.25rem;
  background: rgba(77, 163, 255, 0.12);
  border-radius: 1px;
}

.fh-task-steps__line.is-done {
  background: linear-gradient(90deg, rgba(59, 158, 255, 0.5), rgba(59, 158, 255, 0.25));
}

/* Grid */
.fh-task-detail__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .fh-task-detail__grid {
    grid-template-columns: 1fr;
  }
}

.fh-task-detail__sidebar {
  position: sticky;
  top: 80px;
}

@media (max-width: 991.98px) {
  .fh-task-detail__sidebar {
    position: static;
  }
}

.fh-task-detail__card {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.88), rgba(8, 14, 26, 0.78));
  border: 1px solid rgba(77, 163, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.fh-task-detail__card + .fh-task-detail__card {
  margin-top: 0.85rem;
}

.fh-task-detail__card-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b8cb0;
}

/* Facts */
.fh-task-detail__facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fh-task-detail__fact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(77, 163, 255, 0.08);
  border-radius: 10px;
}

.fh-task-detail__fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.1);
  flex-shrink: 0;
}

.fh-task-detail__fact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b8cb0;
  margin-bottom: 0.1rem;
}

.fh-task-detail__fact-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #eef4fc;
}

.fh-task-detail__fact-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.fh-task-detail__fact-value--truncate,
.fh-copy-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-copy-text {
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #eef4fc;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fh-copy-text:hover,
.fh-copy-text:focus-visible {
  color: #5eb8ff;
  outline: none;
}

.fh-copy-text.is-copied {
  color: #6ee7b7;
}

.fh-tag--copy {
  max-width: min(100%, 16rem);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fh-tag--copy:hover {
  border-color: rgba(59, 158, 255, 0.35);
  background: rgba(59, 158, 255, 0.14);
}

.fh-tag--copy .fh-tag__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fh-tag--copy.is-copied {
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.fh-task-detail__ref {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  color: #8ecfff;
  background: rgba(59, 158, 255, 0.12);
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button.fh-task-detail__ref {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.fh-task-detail__ref:hover,
button.fh-task-detail__ref:focus-visible {
  color: #ffffff;
  background: rgba(59, 158, 255, 0.2);
  border-color: rgba(59, 158, 255, 0.4);
  outline: none;
}

/* Links */
.fh-task-detail__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fh-task-detail__links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9eb8d8;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.fh-task-detail__links a i {
  width: 1rem;
  font-size: 0.75rem;
  color: #6b8cb0;
  text-align: center;
}

.fh-task-detail__links a:hover {
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.08);
}

/* Staff actions */
.fh-task-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fh-task-detail__action-form {
  margin: 0;
}

.fh-task-detail__actions .fh-btn {
  justify-content: center;
  font-size: 0.82rem;
}

.fh-btn--danger {
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.2) !important;
}

.fh-btn--danger:hover {
  color: #fecaca !important;
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}

/* Content */
.fh-task-detail__card--content {
  min-height: 320px;
}

.fh-task-detail__content-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-task-detail__content-head .fh-task-detail__card-title {
  margin: 0;
  font-size: 0.78rem;
}

.fh-task-detail__updated {
  font-size: 0.75rem;
  color: #6b8cb0;
}

.fh-task-detail__prose {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #c8daf0;
  word-wrap: break-word;
  counter-reset: fh-ol;
}

.fh-task-detail__prose > *:first-child {
  margin-top: 0 !important;
}

.fh-task-detail__prose p {
  margin-bottom: 0.9rem;
}

.fh-task-detail__prose p:last-child {
  margin-bottom: 0;
}

.fh-task-detail__prose h1,
.fh-task-detail__prose h2,
.fh-task-detail__prose h3 {
  display: block;
  margin: 1.5rem 0 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(59, 158, 255, 0.1), rgba(59, 158, 255, 0.02));
  border: 1px solid rgba(77, 163, 255, 0.12);
  border-radius: 10px;
}

.fh-task-detail__prose h1:first-child,
.fh-task-detail__prose h2:first-child,
.fh-task-detail__prose h3:first-child {
  margin-top: 0;
}

.fh-task-detail__prose h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8f0fc;
}

.fh-task-detail__prose strong,
.fh-task-detail__prose b {
  color: #ffffff;
  font-weight: 700;
}

.fh-task-detail__prose a {
  color: #5eb8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fh-task-detail__prose a:hover {
  color: #9ed4ff;
}

/* Guide d’instructions : listes + commandes liées */
.fh-task-detail__prose > ul,
.fh-task-detail__prose > ol,
.fh-task-detail__prose > pre,
.fh-task-detail__prose > .fh-code-block {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

.fh-task-detail__prose ul,
.fh-task-detail__prose ol {
  margin: 0.35rem 0;
  padding: 0.55rem 0.55rem 0.55rem 0.2rem;
  list-style: none;
  background: rgba(8, 14, 26, 0.5);
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 10px;
}

.fh-task-detail__prose ol + pre,
.fh-task-detail__prose ol + .fh-code-block,
.fh-task-detail__prose pre + ol,
.fh-task-detail__prose .fh-code-block + ol,
.fh-task-detail__prose ol + ol,
.fh-task-detail__prose ul + ol,
.fh-task-detail__prose ol + ul {
  margin-top: 0.45rem;
}

.fh-task-detail__prose ul li,
.fh-task-detail__prose ol li {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  color: #c5d9f0;
  line-height: 1.55;
}

.fh-task-detail__prose ul li + li,
.fh-task-detail__prose ol li + li {
  margin-top: 0.25rem;
}

/* TinyMCE enveloppe souvent le texte des <li> dans des <p> */
.fh-task-detail__prose li > p,
.fh-task-detail__prose li .fh-ol-text > p {
  margin: 0 !important;
  padding: 0;
  color: inherit;
  line-height: inherit;
}

.fh-task-detail__prose li > p + p,
.fh-task-detail__prose li .fh-ol-text > p + p {
  margin-top: 0.35rem !important;
}

.fh-task-detail__prose li > br:first-child {
  display: none;
}

/* Artefacts TinyMCE (caret / spans vides → rectangles blancs) */
.fh-task-detail__prose li span[data-mce-type="bookmark"],
.fh-task-detail__prose li span[data-mce-type="format"],
.fh-task-detail__prose [data-mce-bogus],
.fh-task-detail__prose span:empty {
  display: none !important;
}

.fh-task-detail__prose ul li {
  padding-left: 1.55rem;
}

.fh-task-detail__prose ul li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b9eff;
}

.fh-task-detail__prose ol {
  counter-reset: none;
}

.fh-task-detail__prose ol li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  counter-increment: fh-ol;
  padding-left: 0.7rem;
}

.fh-task-detail__prose ol li::before {
  content: counter(fh-ol);
  position: static;
  flex: 0 0 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  background: #2f7fe0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(47, 127, 224, 0.35);
  pointer-events: none;
}

/* Tout le contenu texte dans un seul bloc → plus de colonnes ni de wrap sous le n° */
.fh-task-detail__prose ol li > .fh-ol-text {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.fh-task-detail__prose hr {
  margin: 1.25rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 255, 0.2), transparent);
}

.fh-task-detail__prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.85rem 0;
  border: 1px solid rgba(77, 163, 255, 0.12);
}

.fh-task-detail__prose code {
  padding: 0.15rem 0.4rem;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #8ecfff;
  background: rgba(59, 158, 255, 0.1);
  border-radius: 4px;
}

.fh-task-detail__prose .fh-code-block {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0.45rem 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.fh-task-detail__prose .fh-code-block > pre,
.fh-task-detail__prose > pre {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 1rem;
  padding-right: 4.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.84rem !important;
  line-height: 1.7;
  color: #8ecfff !important;
  background: rgba(4, 10, 20, 0.85) !important;
  border: 1px solid rgba(77, 163, 255, 0.14) !important;
  border-radius: 10px !important;
  outline: none !important;
  box-shadow: none !important;
}

.fh-task-detail__prose > pre {
  margin: 0.45rem 0;
  position: relative;
}

.fh-task-detail__prose pre code {
  display: block;
  padding: 0;
  color: inherit;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  font-size: inherit;
  box-shadow: none !important;
}

/* Tue le rectangle blanc TinyMCE autour des commandes (hors notre wrapper) */
.fh-task-detail__prose div:not(.fh-code-block):has(> pre),
.fh-task-detail__prose p:has(> pre),
.fh-task-detail__prose p:has(> .fh-code-block),
.fh-task-detail__prose span:has(> pre),
.fh-task-detail__prose table:has(pre),
.fh-task-detail__prose td:has(pre),
.fh-task-detail__prose th:has(pre) {
  margin: 0.45rem 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.fh-task-detail__prose div:not(.fh-code-block):has(> pre) > pre,
.fh-task-detail__prose p:has(> pre) > pre,
.fh-task-detail__prose td:has(pre) > pre {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.fh-task-detail__prose .fh-code-block__copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.5rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: #9eb6d4;
  background: rgba(18, 30, 48, 0.95);
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fh-task-detail__prose .fh-code-block__copy i {
  font-size: 0.7rem;
  line-height: 1;
  color: inherit;
}

.fh-task-detail__prose pre:hover .fh-code-block__copy,
.fh-task-detail__prose .fh-code-block:hover .fh-code-block__copy,
.fh-task-detail__prose .fh-code-block__copy:focus-visible {
  opacity: 1;
}

.fh-task-detail__prose .fh-code-block__copy:hover {
  color: #ffffff;
  border-color: rgba(77, 163, 255, 0.4);
  background: rgba(30, 48, 72, 0.98);
}

.fh-task-detail__prose .fh-code-block__copy.is-copied {
  opacity: 1;
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

.fh-task-detail__prose table {
  width: 100%;
  margin: 0.85rem 0 1.1rem;
  border-collapse: collapse;
  font-size: 0.85rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.12);
}

.fh-task-detail__prose th,
.fh-task-detail__prose td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-task-detail__prose th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8fa8c8;
  background: rgba(59, 158, 255, 0.08);
}

.fh-task-detail__prose tr:last-child td {
  border-bottom: 0;
}

.fh-task-detail__prose blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.06);
  border-radius: 0 10px 10px 0;
  color: #e8d5a8;
}

.fh-task-detail__empty {
  margin: 0;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #6b8cb0;
  background: rgba(8, 14, 26, 0.4);
  border: 1px dashed rgba(77, 163, 255, 0.12);
  border-radius: 12px;
}

.fh-text-muted {
  color: #6b8cb0 !important;
}

/* Modal */
.fh-modal {
  background: #0c1829 !important;
  border: 1px solid rgba(77, 163, 255, 0.22) !important;
  color: #e8f0fc !important;
  border-radius: 18px !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.fh-modal .modal-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.12) !important;
}

.fh-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.fh-modal .modal-body {
  padding: 1.25rem;
}

.fh-modal .modal-body label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8fa8c8;
}

.fh-modal .form-control,
.fh-modal .form-select,
.fh-modal select {
  background-color: #081220 !important;
  border: 1px solid rgba(77, 163, 255, 0.25) !important;
  color: #eef4fc !important;
  -webkit-text-fill-color: #eef4fc;
}

.fh-modal .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a8c0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

.fh-modal .form-select option {
  background-color: #0c1829;
  color: #e8f0fc;
}

.fh-modal .modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(77, 163, 255, 0.12) !important;
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .fh-task-detail__hero {
    padding: 1.1rem;
  }

  .fh-task-steps {
    justify-content: space-between;
  }

  .fh-task-steps__item {
    min-width: 0;
    flex: 1;
  }

  .fh-task-steps__label {
    font-size: 0.62rem;
  }
}

/* ══════════════════════════════════════════
   RECHERCHE DOSSIER — fh-lookup
   ══════════════════════════════════════════ */

.fh-lookup .fh-portal__inner {
  max-width: 960px;
}

.fh-lookup__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.fh-lookup__panel {
  padding: 2rem 2.25rem;
  background: linear-gradient(155deg, rgba(16, 30, 52, 0.95) 0%, rgba(8, 14, 26, 0.92) 100%);
  border: 1px solid rgba(77, 163, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.fh-lookup__brand {
  margin-bottom: 1.5rem;
}

.fh-lookup__brand img {
  height: auto;
  max-width: 160px;
}

.fh-lookup__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.12);
  border: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: 999px;
}

.fh-lookup__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.fh-lookup__lead {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #8fa8c8;
}

.fh-lookup__alert {
  margin-bottom: 1.25rem;
}

.fh-lookup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fh-lookup__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8fa8c8;
}

.fh-lookup__input-wrap {
  position: relative;
}

.fh-lookup__input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5eb8ff;
  font-size: 0.85rem;
  pointer-events: none;
}

.fh-lookup__input-wrap .form-control {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(8, 18, 32, 0.85) !important;
  border: 1px solid rgba(77, 163, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

.fh-lookup__input-wrap .form-control:focus {
  border-color: rgba(59, 158, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.12) !important;
}

.fh-lookup__submit {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
}

.fh-lookup__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-lookup__discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8fa8c8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fh-lookup__discord:hover {
  color: #7289da;
}

.fh-lookup__aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fh-lookup__aside-card {
  padding: 1.15rem 1.25rem;
  background: rgba(12, 22, 38, 0.7);
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 14px;
}

.fh-lookup__aside-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.fh-lookup__aside-card h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8f0fc;
  line-height: 1.3;
}

.fh-lookup__aside-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b8cb0;
}

@media (max-width: 767.98px) {
  .fh-lookup__wrap {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .fh-lookup__panel {
    padding: 1.5rem;
  }

  .fh-lookup__aside {
    display: none;
  }

  .fh-lookup__discord {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }

  .fh-lookup__steps {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .fh-lookup__steps li {
    white-space: normal;
  }
}

/* ══════════════════════════════════════════
   LISTE DOSSIERS — fh-dossiers
   ══════════════════════════════════════════ */

.fh-dossiers__hero .fh-dash-hero__cta {
  flex-shrink: 0;
}

.fh-dossiers__stats {
  margin-bottom: 1rem;
}

.fh-dossiers__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.fh-dossiers__search {
  flex: 1 1 220px;
  min-width: 0;
}

.fh-dossiers__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fh-dossiers__count {
  margin-left: auto;
  font-size: 0.8rem;
  color: #6b8cb0;
}

.fh-dossiers__count strong {
  color: #e8f0fc;
}

.fh-dossier-card {
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.fh-dossier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3b9eff;
  opacity: 0.85;
}

.fh-dossier-card--waiting::before { background: linear-gradient(90deg, #b45309, #fbbf24); }
.fh-dossier-card--progress::before { background: linear-gradient(90deg, #1d4ed8, #3b9eff); }
.fh-dossier-card--issue::before { background: linear-gradient(90deg, #b91c1c, #f87171); }
.fh-dossier-card--done::before { background: linear-gradient(90deg, #047857, #34d399); }

.fh-dossier-card:hover {
  border-color: rgba(77, 163, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.fh-dossier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fh-dossier-card__id {
  text-decoration: none;
  transition: color 0.15s ease;
}

.fh-dossier-card__id:hover {
  color: #7ec8ff;
}

.fh-dossier-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.fh-dossier-card__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  color: #9eb8d8;
  line-height: 1.4;
}

.fh-dossier-card__row i {
  width: 0.9rem;
  font-size: 0.72rem;
  color: #5a7a9a;
  text-align: center;
  flex-shrink: 0;
}

.fh-dossier-card__progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  color: #6b8cb0;
}

.fh-dossier-card__progress-head strong {
  color: #e8f0fc;
  font-weight: 700;
}

.fh-dossier-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(77, 163, 255, 0.08);
}

.fh-dossier-card__foot time {
  font-size: 0.72rem;
  color: #5a7a9a;
}

.fh-dossiers__empty,
.fh-dossiers__empty-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.fh-dossiers__empty i,
.fh-dossiers__empty-filter i {
  font-size: 2rem;
  color: #4a6a8a;
}

.fh-dossiers__empty h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8f0fc;
}

.fh-dossiers__empty p,
.fh-dossiers__empty-filter p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b8cb0;
}

/* ══════════════════════════════════════════
   DÉTAIL DOSSIER — fh-dossier-detail
   ══════════════════════════════════════════ */

.fh-dossier-detail--waiting .fh-task-detail__accent {
  background: linear-gradient(90deg, #b45309, #fbbf24, #fde68a);
}

.fh-dossier-detail--progress .fh-task-detail__accent {
  background: linear-gradient(90deg, #1d4ed8, #3b9eff, #7ec8ff);
}

.fh-dossier-detail--issue .fh-task-detail__accent {
  background: linear-gradient(90deg, #b91c1c, #f87171, #fca5a5);
}

.fh-dossier-detail--done .fh-task-detail__accent {
  background: linear-gradient(90deg, #047857, #34d399, #6ee7b7);
}

.fh-dossier-detail--waiting .fh-task-detail__type-icon {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.25);
}

.fh-dossier-detail--issue .fh-task-detail__type-icon {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.25);
}

.fh-dossier-detail--done .fh-task-detail__type-icon {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.25);
}

.fh-incident-steps .fh-task-steps__item.is-current .fh-task-steps__dot {
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.2);
  border-color: rgba(59, 158, 255, 0.4);
  box-shadow: 0 0 12px rgba(59, 158, 255, 0.25);
}

.fh-dossier-detail--done .fh-incident-steps .fh-task-steps__item.is-current .fh-task-steps__dot {
  color: #34d399;
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}

/* Timeline suivi incident */
.fh-dossier-detail__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.fh-dossier-timeline {
  margin-top: 0;
}

.fh-dossier-timeline__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fh-dossier-timeline__head-main {
  min-width: 0;
}

.fh-dossier-timeline__lead {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #6b8cb0;
}

.fh-dossier-timeline__count {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b8cb0;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.fh-dossier-timeline__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fh-dossier-timeline__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.85rem;
}

.fh-dossier-timeline__item#fh-latest-reply {
  scroll-margin-top: 5.5rem;
}

.fh-dossier-timeline__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.2rem;
}

.fh-dossier-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b9eff;
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.2);
  flex-shrink: 0;
}

.fh-dossier-timeline__line {
  flex: 1;
  width: 2px;
  min-height: 1rem;
  margin: 0.35rem 0;
  background: linear-gradient(180deg, rgba(59, 158, 255, 0.35), rgba(59, 158, 255, 0.08));
}

.fh-dossier-timeline__card {
  margin-bottom: 1.15rem;
  padding: 1.05rem 1.2rem 1.15rem;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fh-dossier-timeline__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.08);
}

.fh-dossier-timeline__card-head strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e8f0fc;
}

.fh-dossier-timeline__card-head time {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa8c8;
}

.fh-dossier-timeline__when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.fh-dossier-timeline__when-abs {
  font-size: 0.68rem;
  color: #5a7a9a;
}

.fh-dossier-timeline__prose {
  font-size: 0.9rem;
}

.fh-dossier-timeline__empty,
.fh-dossier-timeline__waiting {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
}

.fh-dossier-timeline__empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #6b8cb0;
  background: rgba(8, 14, 26, 0.4);
  border: 1px dashed rgba(77, 163, 255, 0.16);
}

.fh-dossier-timeline__empty i {
  font-size: 1.4rem;
  color: #5a7a9a;
  margin-bottom: 0.15rem;
}

.fh-dossier-timeline__empty strong,
.fh-dossier-timeline__waiting strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #e8f0fc;
  font-size: 0.92rem;
}

.fh-dossier-timeline__empty p,
.fh-dossier-timeline__waiting p {
  margin: 0;
  font-size: 0.84rem;
  color: #6b8cb0;
}

.fh-dossier-timeline__waiting {
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.08), rgba(8, 14, 26, 0.45));
  border: 1px solid rgba(77, 163, 255, 0.16);
}

.fh-dossier-timeline__waiting-pulse {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #3b9eff;
  box-shadow: 0 0 0 0 rgba(59, 158, 255, 0.45);
  animation: fh-dossier-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes fh-dossier-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 158, 255, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(59, 158, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 158, 255, 0); }
}

.fh-dossier-fab {
  display: none;
}

@media (max-width: 991.98px) {
  .fh-dossier-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: block;
  }

  .fh-dossier-fab .fh-btn {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 158, 255, 0.25);
  }

  .fh-dossier-detail .fh-task-detail__card--actions {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .fh-dossiers__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-dossiers__count {
    margin-left: 0;
    text-align: center;
  }

  .fh-dossier-grid {
    grid-template-columns: 1fr;
  }

  .fh-task-detail__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-task-detail__nav-actions {
    justify-content: stretch;
  }

  .fh-task-detail__jump,
  .fh-task-detail__copy {
    flex: 1;
    justify-content: center;
  }

  .fh-dossier-timeline__item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .fh-dossier-timeline__card {
    padding: 0.9rem 0.95rem 1rem;
  }
}

/* ══════════════════════════════════════════
   AMÉLIORATIONS v2 — lookup / dossiers / détail
   ══════════════════════════════════════════ */

.fh-lookup {
  position: relative;
  overflow: hidden;
}

.fh-lookup__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fh-lookup__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.fh-lookup__glow--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 10%;
  background: rgba(59, 158, 255, 0.25);
}

.fh-lookup__glow--2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: 5%;
  background: rgba(52, 211, 153, 0.12);
}

.fh-lookup__wrap {
  position: relative;
  z-index: 1;
}

.fh-lookup__panel {
  position: relative;
  overflow: hidden;
}

.fh-lookup__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b9eff, #7ec8ff);
}

.fh-lookup__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0.85rem 1rem;
  list-style: none;
  background: rgba(8, 14, 26, 0.45);
  border: 1px solid rgba(77, 163, 255, 0.08);
  border-radius: 12px;
}

.fh-lookup__steps li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #8fa8c8;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .fh-lookup__steps {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .fh-lookup__steps li {
    white-space: normal;
  }
}

.fh-lookup__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.15);
  border-radius: 50%;
}

.fh-lookup__aside-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.12);
  border-radius: 10px;
}

.fh-lookup__aside-icon i {
  display: inline-block;
  margin: 0;
  font-size: inherit;
  color: inherit;
  line-height: 1;
}

.fh-lookup__aside-card--accent {
  border-color: rgba(52, 211, 153, 0.2);
  background: linear-gradient(155deg, rgba(6, 46, 22, 0.25), rgba(8, 14, 26, 0.7));
}

.fh-lookup__aside-card--accent .fh-lookup__aside-icon {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}

.fh-lookup__aside-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  text-decoration: none;
}

.fh-lookup__aside-link i {
  display: inline-block;
  margin: 0;
  font-size: 0.68rem;
  color: inherit;
  line-height: 1;
}

.fh-lookup__aside-link:hover {
  color: #a7f3d0;
}

/* Stats cliquables */
.fh-dash-stat--filter {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(77, 163, 255, 0.1);
  background: rgba(12, 22, 38, 0.65);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fh-dash-stat--filter:hover {
  border-color: rgba(59, 158, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.fh-dash-stat--filter.is-active {
  border-color: rgba(59, 158, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 158, 255, 0.15), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.fh-dossiers__toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.fh-dossiers__sort-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b8cb0;
  margin: 0;
}

.fh-dossiers__sort {
  width: auto;
  min-width: 9.5rem;
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8daf0 !important;
  background-color: rgba(8, 18, 32, 0.85) !important;
  border: 1px solid rgba(77, 163, 255, 0.18) !important;
  border-radius: 8px !important;
}

.fh-dossiers__view {
  display: inline-flex;
  padding: 0.2rem;
  background: rgba(8, 14, 26, 0.6);
  border: 1px solid rgba(77, 163, 255, 0.12);
  border-radius: 8px;
}

.fh-dossiers__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 0.82rem;
  color: #6b8cb0;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.fh-dossiers__view-btn:hover {
  color: #9eb8d8;
}

.fh-dossiers__view-btn.is-active {
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.15);
}

.fh-dossier-card {
  position: relative;
  padding-top: 1.35rem;
}

.fh-dossier-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.fh-dossier-card__head,
.fh-dossier-card__body,
.fh-dossier-card__progress,
.fh-dossier-card__foot {
  position: relative;
  z-index: 0;
}

.fh-dossier-card__row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fh-dossier-card__ring {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.fh-dossier-card__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fh-dossier-card__ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 3;
}

.fh-dossier-card__ring-fill {
  fill: none;
  stroke: #3b9eff;
  stroke-width: 3;
  stroke-linecap: round;
}

.fh-dossier-card__ring.fh-progress--complete .fh-dossier-card__ring-fill { stroke: #34d399; }
.fh-dossier-card__ring.fh-progress--mid .fh-dossier-card__ring-fill { stroke: #fbbf24; }
.fh-dossier-card__ring.fh-progress--low .fh-dossier-card__ring-fill { stroke: #f87171; }

.fh-dossier-card__ring > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #e8f0fc;
}

.fh-dossier-card__dates {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fh-dossier-card__updated {
  font-size: 0.68rem;
  color: #5eb8ff;
}

.fh-dossier-card__cta {
  pointer-events: none;
}

.fh-dossier-card:hover .fh-dossier-card__cta {
  filter: brightness(1.08);
}

/* Vue liste compacte */
.fh-dossiers--list .fh-dossier-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.fh-dossiers--list .fh-dossier-card {
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  grid-template-areas: "id mail server staff actions";
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.15rem;
}

.fh-dossiers--list .fh-dossier-card__head {
  grid-area: id;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.fh-dossiers--list .fh-dossier-card__ring {
  display: none;
}

.fh-dossiers--list .fh-dossier-card__body {
  display: contents;
}

.fh-dossiers--list .fh-dossier-card__row:nth-child(1) { grid-area: mail; }
.fh-dossiers--list .fh-dossier-card__row:nth-child(2) { grid-area: server; }
.fh-dossiers--list .fh-dossier-card__row:nth-child(3) { grid-area: staff; }

.fh-dossiers--list .fh-dossier-card__progress {
  display: none;
}

.fh-dossiers--list .fh-dossier-card__foot {
  grid-area: actions;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: none;
}

.fh-dossiers--list .fh-dossier-card__dates {
  display: none;
}

.fh-dossiers--list .fh-dossier-card__cta {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .fh-dossiers--list .fh-dossier-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "id actions"
      "mail mail"
      "server server"
      "staff staff";
  }
}

/* Détail dossier — facts colorées */
.fh-task-detail__fact--waiting .fh-task-detail__fact-icon { color: #fde68a; background: rgba(251, 191, 36, 0.12); }
.fh-task-detail__fact--progress .fh-task-detail__fact-icon { color: #7ec8ff; background: rgba(59, 158, 255, 0.12); }
.fh-task-detail__fact--issue .fh-task-detail__fact-icon { color: #fca5a5; background: rgba(248, 113, 113, 0.12); }
.fh-task-detail__fact--done .fh-task-detail__fact-icon { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); }

.fh-dossier-detail .fh-task-detail__hero-aside .fh-task-detail__progress {
  display: none;
}

@media (max-width: 767.98px) {
  .fh-dossier-detail .fh-task-detail__hero-aside .fh-task-detail__progress {
    display: block;
    width: 100%;
  }
}

/* Timeline enrichie */
.fh-dossier-timeline__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.15);
  border: 2px solid rgba(59, 158, 255, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

.fh-dossier-timeline__item.is-latest .fh-dossier-timeline__avatar {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.22);
}

.fh-dossier-timeline__item.is-initial .fh-dossier-timeline__avatar {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.32);
}

.fh-dossier-timeline__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.fh-dossier-timeline__role {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8fa8c8;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 999px;
}

.fh-dossier-timeline__badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6ee7b7;
  padding: 0.15rem 0.45rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 999px;
}

.fh-dossier-timeline__item.is-latest .fh-dossier-timeline__card {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(145deg, rgba(6, 46, 22, 0.22), rgba(8, 14, 26, 0.62));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(52, 211, 153, 0.08) inset;
}

.fh-dossier-timeline__item.is-latest .fh-dossier-timeline__line {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.35), rgba(59, 158, 255, 0.08));
}

.fh-dossier-timeline__item.is-latest.is-flash .fh-dossier-timeline__card {
  animation: fh-dossier-flash 1.1s ease;
}

@keyframes fh-dossier-flash {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  40% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.18); }
  100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(52, 211, 153, 0.08) inset; }
}

.fh-dossier-progress-range {
  accent-color: #3b9eff;
}

/* ══════════════════════════════════════════
   MON COMPTE — fh-account
   ══════════════════════════════════════════ */

.fh-account__hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(155deg, rgba(16, 30, 52, 0.95) 0%, rgba(8, 14, 26, 0.92) 100%);
  border: 1px solid rgba(77, 163, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.fh-account__hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b9eff, #7ec8ff);
}

.fh-account__profile {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.fh-account__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.fh-account__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(59, 158, 255, 0.35);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fh-account__status {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  background: #34d399;
  border: 2px solid #0c1829;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.fh-account__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.fh-account__badges .fh-dash-hero__tag {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.fh-account__badge {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 0.68rem;
  font-weight: 600;
  color: #8fa8c8;
  padding: 0.28rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 6px;
}

.fh-account__hero-cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.fh-account__name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.fh-account__lead {
  margin: 0;
  font-size: 0.88rem;
  color: #8fa8c8;
  line-height: 1.5;
}

.fh-account__stats {
  margin-bottom: 1.25rem;
}

.fh-account__stats > .fh-dash-stat {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.fh-account__stat-discord {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(12, 22, 38, 0.9), rgba(8, 14, 26, 0.85));
  border: 1px solid rgba(77, 163, 255, 0.1);
  border-radius: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fh-account__stat-discord .fh-dash-stat__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

.fh-account__stat-discord .fh-dash-stat__icon {
  flex-shrink: 0;
}

.fh-account__stat-discord:hover {
  border-color: rgba(52, 211, 153, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.fh-account__stat-discord .fh-dash-stat__value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.fh-account__stat-discord.is-copied {
  border-color: rgba(52, 211, 153, 0.45);
}

.fh-account__stat-discord.is-copied .fh-dash-stat__value {
  color: #6ee7b7;
}

.fh-account__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.fh-account__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fh-account__card {
  padding: 1.25rem 1.3rem;
}

.fh-account__card .fh-dash-section__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.fh-account__card .fh-dash-section__title i {
  color: #5eb8ff;
  font-size: 0.78rem;
}

.fh-account__facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.fh-account__fact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(77, 163, 255, 0.08);
  border-radius: 10px;
}

.fh-account__fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.1);
  flex-shrink: 0;
}

.fh-account__fact-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.fh-account__fact dt {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b8cb0;
}

.fh-account__fact dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #eef4fc;
}

.fh-account__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fh-account__links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9eb8d8;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.fh-account__links a:hover {
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.08);
}

.fh-account__chat {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 1.15rem 1.25rem;
}

.fh-account__chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fh-account__chat-lead {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #6b8cb0;
}

.fh-account__chat-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b8cb0;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  white-space: nowrap;
}

.fh-account__chat-list {
  flex: 1;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.25rem;
}

.fh-account__chat-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.fh-account__chat-item + .fh-account__chat-item {
  border-top: 1px solid rgba(77, 163, 255, 0.06);
}

.fh-account__chat-body {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  background: rgba(8, 14, 26, 0.45);
  border: 1px solid rgba(77, 163, 255, 0.08);
  border-radius: 12px;
}

.fh-account__chat-item--own .fh-account__chat-body {
  background: rgba(59, 158, 255, 0.08);
  border-color: rgba(59, 158, 255, 0.18);
}

.fh-account__chat-you {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5eb8ff;
}

.fh-account__chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.fh-account__chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(77, 163, 255, 0.15);
  object-fit: cover;
}

.fh-account__chat-avatar.is-hidden {
  display: none;
}

.fh-account__chat-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5eb8ff;
  background: rgba(59, 158, 255, 0.15);
  border: 2px solid rgba(77, 163, 255, 0.2);
}

.fh-account__chat-avatar-fallback.is-hidden {
  display: none;
}

.fh-account__chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.3rem;
}

.fh-account__chat-meta strong {
  font-size: 0.85rem;
  color: #e8f0fc;
}

.fh-account__chat-meta time {
  font-size: 0.72rem;
  color: #5a7a9a;
}

.fh-account__chat-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #9eb8d8;
  word-break: break-word;
}

.fh-account__chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 3rem 1rem;
  text-align: center;
  color: #6b8cb0;
}

.fh-account__chat-empty i {
  font-size: 2rem;
  opacity: 0.6;
}

.fh-account__chat-form {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-account__chat-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa8c8;
}

.fh-account__chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fh-account__chat-compose .form-control {
  background: rgba(8, 18, 32, 0.85) !important;
  border: 1px solid rgba(77, 163, 255, 0.2) !important;
  color: #eef4fc !important;
  border-radius: 12px !important;
  resize: vertical;
}

.fh-account__chat-compose .fh-btn {
  align-self: flex-end;
}

/* ══════════════════════════════════════════
   AJOUT DOSSIER — fh-add-dossier
   ══════════════════════════════════════════ */

.fh-add-dossier .fh-portal__inner {
  max-width: 1140px;
}

.fh-add-dossier__nav {
  margin-bottom: 1rem;
}

.fh-add-dossier__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.fh-add-dossier__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

.fh-add-dossier__id-card {
  position: relative;
  text-align: center;
  padding: 1.35rem 1.25rem 1.15rem;
  background: linear-gradient(155deg, rgba(16, 30, 52, 0.95), rgba(8, 14, 26, 0.9));
  border-color: rgba(59, 158, 255, 0.22);
  overflow: hidden;
}

.fh-add-dossier__id-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b9eff, #7ec8ff);
}

.fh-add-dossier__id-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b8cb0;
  margin-bottom: 0.45rem;
}

.fh-add-dossier__id-value {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 800;
  color: #7ec8ff;
  letter-spacing: 0.02em;
}

.fh-add-dossier__id-hint {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b8cb0;
}

.fh-add-dossier__id-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #6b8cb0;
  text-align: left;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.08);
  border-radius: 8px;
}

.fh-add-dossier__id-preview i {
  margin-top: 0.1rem;
  color: #5a7a9a;
  flex-shrink: 0;
}

.fh-add-dossier__id-preview-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fh-add-dossier__tips {
  padding: 1.15rem 1.25rem;
}

.fh-add-dossier__tips .fh-dash-section__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.fh-add-dossier__tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fh-add-dossier__tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #8fa8c8;
}

.fh-add-dossier__tips-list li i {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: #34d399;
  flex-shrink: 0;
}

.fh-add-dossier__form-panel {
  padding: 1.35rem 1.4rem 1.25rem;
}

.fh-add-dossier__form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-add-dossier__form-head .fh-dash-hero__tag {
  margin-bottom: 0.45rem;
}

.fh-add-dossier__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.fh-add-dossier__lead {
  margin: 0;
  font-size: 0.88rem;
  color: #8fa8c8;
  line-height: 1.5;
  max-width: 36rem;
}

.fh-add-dossier__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.fh-add-dossier__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8fa8c8;
}

.fh-add-dossier__editor {
  border-radius: 12px;
  overflow: hidden;
}

.fh-add-dossier__form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-add-dossier__submit {
  box-shadow: 0 4px 16px rgba(59, 158, 255, 0.25);
}

.fh-add-dossier__submit:hover {
  box-shadow: 0 6px 20px rgba(59, 158, 255, 0.32);
}

.fh-add-dossier__cancel {
  color: #9eb8d8 !important;
  border-color: rgba(77, 163, 255, 0.2) !important;
}

/* ══════════════════════════════════════════
   AJOUT TÂCHE — fh-add-task
   ══════════════════════════════════════════ */

.fh-add-task .fh-portal__inner {
  max-width: 1240px;
}

.fh-add-task__nav {
  margin-bottom: 1rem;
}

.fh-add-task__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 44%);
  gap: 1.35rem;
  align-items: start;
}

.fh-add-task__form-panel {
  padding: 0;
  overflow: hidden;
}

.fh-add-task__form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 26, 44, 0.35), transparent);
}

.fh-add-task__form-head .fh-dash-hero__tag {
  margin-bottom: 0.55rem;
}

.fh-add-task__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.fh-add-task__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #8fa8c8;
}

.fh-add-task__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.fh-add-task__form {
  padding: 1.35rem 1.5rem 1.5rem;
}

.fh-add-task__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9eb8d8;
}

.fh-add-task__editor {
  border-radius: 12px;
  overflow: hidden;
}

.fh-add-task__progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fh-add-task__range {
  flex: 1;
  min-width: 0;
  height: 0.35rem;
  accent-color: #3b9eff;
  cursor: pointer;
}

.fh-add-task__progress-input {
  position: relative;
  width: 5.5rem;
  flex-shrink: 0;
}

.fh-add-task__progress-input .form-control {
  padding-right: 1.65rem;
  text-align: center;
  font-weight: 700;
}

.fh-add-task__progress-suffix {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b8cb0;
  pointer-events: none;
}

.fh-add-task__form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(77, 163, 255, 0.1);
}

.fh-add-task__submit {
  min-width: 11rem;
}

.fh-add-task__cancel {
  color: #9eb8d8 !important;
  border-color: rgba(77, 163, 255, 0.2) !important;
}

.fh-add-task__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

.fh-add-task__id-card {
  position: relative;
  padding: 0.95rem 1rem;
  background: linear-gradient(155deg, rgba(16, 30, 52, 0.95), rgba(8, 14, 26, 0.9));
  border-color: rgba(59, 158, 255, 0.22);
  overflow: hidden;
}

.fh-add-task__id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.fh-add-task__id-copy {
  flex-shrink: 0;
}

.fh-add-task__id-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #3b9eff, #7ec8ff);
}

.fh-add-task__id-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fa8c8;
  margin-bottom: 0.15rem;
}

.fh-add-task__id-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #9ed4ff;
  letter-spacing: 0.02em;
}

.fh-add-task__id-hint {
  display: none;
}

.fh-add-task__id-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  text-align: left;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #9eb8d8;
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(77, 163, 255, 0.16);
  border-radius: 8px;
}

.fh-add-task__id-preview i {
  margin-top: 0.1rem;
  color: #5a7a9e;
  flex-shrink: 0;
}

.fh-add-task__id-preview-url {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.fh-add-task__preview-wrap {
  padding: 1.15rem 1.15rem 1.2rem;
  background: linear-gradient(160deg, rgba(18, 34, 58, 0.98), rgba(10, 18, 32, 0.95));
  border: 1px solid rgba(77, 163, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(59, 158, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fh-add-task__preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.fh-add-task__preview-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.fh-add-task__preview-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.fh-add-task__preview-title i {
  margin-right: 0.4rem;
  color: #7ec8ff;
}

.fh-add-task__preview-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.25);
  background: rgba(59, 158, 255, 0.1);
  color: #9ed4ff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fh-add-task__preview-expand:hover {
  background: rgba(59, 158, 255, 0.2);
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
}

.fh-add-task__preview-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
}

.fh-add-task__preview-live::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: fh-add-task-pulse 1.8s ease-in-out infinite;
}

@keyframes fh-add-task-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.fh-add-task__preview-hint {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #a8c4e4;
}

.fh-add-task__preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(6, 12, 22, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fh-add-task__preview-hero {
  position: relative;
  padding: 1.15rem 1.15rem 1rem;
  background: linear-gradient(155deg, rgba(20, 36, 60, 0.98), rgba(10, 18, 32, 0.94));
}

.fh-add-task__preview-hero .fh-task-detail__accent {
  height: 4px;
}

.fh-add-task__preview-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 0.85rem;
  align-items: start;
}

.fh-add-task__preview-task-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.28;
  word-break: break-word;
}

.fh-add-task__preview-hero .fh-task-detail__hero-top {
  margin-bottom: 0.65rem;
}

.fh-add-task__preview-hero .fh-task-detail__type-icon {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.95rem;
}

.fh-add-task__preview-hero .fh-badge {
  font-size: 0.76rem;
  padding: 0.28rem 0.55rem;
}

.fh-add-task__preview-hero .fh-tag--node {
  font-size: 0.76rem;
}

.fh-add-task__preview-hero .fh-task-detail__meta-pill {
  font-size: 0.74rem;
  padding: 0.28rem 0.58rem;
  color: #c8daf0;
}

.fh-add-task__preview-ring-wrap .fh-task-detail__progress-ring {
  width: 4.5rem;
  height: 4.5rem;
}

.fh-add-task__preview-ring-wrap .fh-task-detail__ring-value {
  font-size: 1rem;
}

.fh-add-task__preview-ring-wrap .fh-task-detail__ring-value small {
  font-size: 0.62rem;
}

.fh-add-task__preview-steps {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(77, 163, 255, 0.14);
  justify-content: space-between;
}

.fh-add-task__preview-steps .fh-task-steps__item {
  flex: 1 1 0;
  min-width: 0;
}

.fh-add-task__preview-steps .fh-task-steps__label {
  font-size: 0.72rem;
  color: #9eb8d8;
  white-space: nowrap;
}

.fh-add-task__preview-steps .fh-task-steps__item.is-done .fh-task-steps__label,
.fh-add-task__preview-steps .fh-task-steps__item.is-current .fh-task-steps__label {
  color: #e8f0fc;
}

.fh-add-task__preview-steps .fh-task-steps__dot {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.72rem;
}

.fh-add-task__preview-body {
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(77, 163, 255, 0.14);
  background: rgba(4, 10, 20, 0.65);
}

.fh-add-task__preview-body-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9eb8d8;
}

.fh-add-task__preview-prose {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #eef4fc;
  max-height: min(42vh, 420px);
  overflow: auto;
  padding-right: 0.25rem;
}

.fh-add-task__preview-prose::-webkit-scrollbar {
  width: 6px;
}

.fh-add-task__preview-prose::-webkit-scrollbar-thumb {
  background: rgba(77, 163, 255, 0.35);
  border-radius: 999px;
}

.fh-add-task__preview-prose strong,
.fh-add-task__preview-prose b {
  color: #ffffff;
}

.fh-add-task__preview-prose .fh-task-detail__empty {
  color: #8fa8c8;
  font-style: italic;
}

body.fh-add-task-preview-open {
  overflow: hidden;
}

body.fh-add-task-preview-open > .fh-add-task__preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(8px);
}

body.fh-add-task-preview-open > .fh-add-task__preview-wrap.is-expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1081;
  width: min(94vw, 760px);
  max-height: 92vh;
  overflow: auto;
  padding: 1.35rem;
  margin: 0;
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.fh-add-task__preview-wrap.is-expanded .fh-add-task__preview-prose {
  max-height: min(55vh, 520px);
  font-size: 0.95rem;
}

.fh-add-task__preview-wrap.is-expanded .fh-add-task__preview-task-title {
  font-size: 1.45rem;
}

.fh-add-task__preview-prose p {
  margin: 0 0 0.55rem;
}

.fh-add-task__preview-prose p:last-child {
  margin-bottom: 0;
}

.fh-add-task__tips {
  padding: 1rem 1.1rem;
}

.fh-add-task__tips .fh-dash-section__title {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.fh-add-task__tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fh-add-task__tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #8fa8c8;
}

.fh-add-task__tips-list li i {
  margin-top: 0.15rem;
  color: #34d399;
  font-size: 0.62rem;
}

@media (max-width: 991.98px) {
  .fh-add-task__layout {
    grid-template-columns: 1fr;
  }

  .fh-add-task__aside {
    position: static;
    order: 2;
  }

  .fh-add-task__form-panel {
    order: 1;
  }

  .fh-add-task__form-head {
    flex-direction: column;
  }

  .fh-add-task__head-actions {
    width: 100%;
  }

  .fh-add-task__preview-prose {
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  .fh-add-task__form {
    padding: 1.15rem 1rem 1.25rem;
  }

  .fh-add-task__form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-add-task__submit,
  .fh-add-task__cancel {
    width: 100%;
    justify-content: center;
  }

  .fh-add-task__preview-hero-grid {
    grid-template-columns: 1fr;
  }

  .fh-add-task__preview-ring-wrap {
    justify-self: start;
  }
}

@media (max-width: 991.98px) {
  .fh-add-dossier__layout {
    grid-template-columns: 1fr;
  }

  .fh-add-dossier__aside {
    position: static;
  }

  .fh-add-dossier__form-head {
    flex-direction: column;
  }

  .fh-add-dossier__head-actions {
    width: 100%;
  }

  .fh-account__grid {
    grid-template-columns: 1fr;
  }

  .fh-account__hero {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-account__chat {
    min-height: auto;
  }

  .fh-account__chat-list {
    max-height: 320px;
  }
}

.fh-form-required {
  color: #f87171;
}

.fh-form-input-wrap {
  position: relative;
}

.fh-form-input-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5a7a9a;
  font-size: 0.82rem;
  pointer-events: none;
}

.fh-form-input-wrap .form-control {
  padding-left: 2.35rem;
  background: rgba(8, 18, 32, 0.85) !important;
  border: 1px solid rgba(77, 163, 255, 0.2) !important;
  color: #eef4fc !important;
  border-radius: 10px !important;
}

.fh-form-input-wrap .form-control:focus {
  border-color: rgba(59, 158, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.1) !important;
}

/* ══════════════════════════════════════════
   MOBILE — status / lookup / dossiers
   ══════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .fh-portal .container.fh-portal__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fh-dash-hero {
    padding: 1.15rem 1rem;
  }

  .fh-dash-hero__top {
    flex-direction: column;
    gap: 1rem;
  }

  .fh-dossiers__hero .fh-dash-hero__cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .fh-dossiers__hero .fh-dash-hero__cta .fh-btn {
    width: 100%;
    justify-content: center;
  }

  .fh-dash-stats {
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .fh-dash-stat {
    padding: 0.9rem 1rem;
  }

  .fh-dossiers__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .fh-dossiers__search {
    flex: 0 0 auto;
    width: 100%;
  }

  .fh-dossiers__filters {
    gap: 0.45rem;
  }

  .fh-dossiers__toolbar-end {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(77, 163, 255, 0.08);
  }

  .fh-dossiers__count {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .fh-lookup__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .fh-lookup__links .fh-btn {
    width: 100%;
    justify-content: center;
  }
}
