/* =====================================================
   FOODHUB — Design tokens V1 (Giga fidèle FOODHUB)
   Palette : vert #1c3d2b + gold #c9a84c + black + white + red (critique)
   Classes préfixées .fh- pour éviter collisions Bootstrap.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
  /* Colors */
  --fh-bg: #070707;
  --fh-surface: #ffffff;
  --fh-surface-alt: #f6f6f4;
  --fh-border: rgba(0,0,0,.06);
  --fh-border-strong: rgba(0,0,0,.12);
  --fh-fg: #ffffff;
  --fh-fg-on-surface: #0e0e0e;
  --fh-muted-on-surface: #5c5c5c;
  --fh-muted: rgba(255,255,255,.6);
  --fh-accent: #c9a84c;
  --fh-accent-soft: rgba(201,168,76,.14);
  --fh-brand: #1c3d2b;
  --fh-brand-soft: #2a5a42;
  --fh-success: #16a34a;
  --fh-danger: #dc2626;
  --fh-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08);

  /* Typography */
  --fh-font-body: 'Inter', system-ui, sans-serif;
  --fh-font-display: 'Inter', system-ui, sans-serif;
  --fh-font-editorial: 'Bebas Neue', 'Inter', system-ui, sans-serif;

  /* Spacing / radius */
  --fh-radius-sm: 8px;
  --fh-radius: 12px;
  --fh-radius-lg: 16px;
}

/* ---------- Scope (.fh-v1 wrapper, on any container) ---------- */
.fh-v1 {
  font-family: var(--fh-font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color: var(--fh-fg-on-surface);
}

.fh-v1 .fh-page-dark {
  background: var(--fh-bg);
  color: var(--fh-fg);
  margin: -20px;
  padding: 24px 20px 60px;
  min-height: calc(100vh - 60px);
}

@media (max-width: 720px) {
  .fh-v1 .fh-page-dark { margin: -12px; padding: 16px 12px 48px; }
}

/* ---------- Hero ---------- */
.fh-hero {
  border-radius: var(--fh-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fh-brand) 0%, var(--fh-brand-soft) 100%);
  color: #fff;
}
.fh-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,168,76,.25), transparent 40%);
  pointer-events: none;
}
.fh-hero h1 { font-family: var(--fh-font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; line-height: 1.1; position: relative; }
.fh-hero p { opacity: .8; font-size: 13px; max-width: 640px; line-height: 1.5; position: relative; }
.fh-hero .fh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; position: relative; }

/* ---------- Page header ---------- */
.fh-page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.fh-page-header h1 { font-family: var(--fh-font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--fh-fg); line-height: 1.1; }
.fh-page-header .fh-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fh-muted); }
.fh-page-header .fh-sub { color: var(--fh-muted); font-size: 12px; margin-top: 4px; }
.fh-page-header .fh-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.fh-card {
  background: var(--fh-surface);
  color: var(--fh-fg-on-surface);
  border-radius: var(--fh-radius);
  border: 1px solid var(--fh-border);
  box-shadow: var(--fh-shadow);
}
.fh-card-title { padding: 16px 20px 0; }
.fh-card-title h2 { font-size: 15px; font-weight: 700; }
.fh-card-title p { color: var(--fh-muted-on-surface); font-size: 12px; margin-top: 2px; }

/* ---------- KPI ---------- */
.fh-grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.fh-kpi {
  background: var(--fh-surface); color: var(--fh-fg-on-surface);
  border: 1px solid var(--fh-border); border-radius: var(--fh-radius);
  padding: 16px; box-shadow: var(--fh-shadow); text-decoration: none; display: block;
}
.fh-kpi .fh-label { font-size: 11px; color: var(--fh-muted-on-surface); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 8px; }
.fh-kpi .fh-value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-family: var(--fh-font-display); line-height: 1.1; }
.fh-kpi .fh-sub { font-size: 11px; color: var(--fh-muted-on-surface); margin-top: 4px; }
.fh-kpi .fh-delta { font-size: 11px; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.fh-kpi .fh-delta.up { color: var(--fh-success); }
.fh-kpi .fh-delta.down { color: var(--fh-danger); }

/* ---------- Pill / badge ---------- */
.fh-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  background: rgba(0,0,0,.05); color: var(--fh-fg-on-surface);
  white-space: nowrap;
}
.fh-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fh-pill.fh-success { background: rgba(22,101,52,.1); color: #166534; }
.fh-pill.fh-warn { background: rgba(0,0,0,.05); color: var(--fh-fg-on-surface); }
.fh-pill.fh-danger { background: rgba(220,38,38,.08); color: #b91c1c; }
.fh-pill.fh-info { background: rgba(0,0,0,.05); color: var(--fh-fg-on-surface); }
.fh-pill.fh-accent { background: rgba(22,101,52,.1); color: #166534; }
.fh-pill.fh-neutral { background: rgba(0,0,0,.05); color: var(--fh-muted-on-surface); }

/* ---------- Buttons ---------- */
.fh-btn {
  padding: 8px 14px; border-radius: var(--fh-radius);
  background: var(--fh-accent); color: #0a0a0a;
  font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; border: none; cursor: pointer; text-decoration: none;
}
.fh-btn.fh-ghost { background: var(--fh-surface); color: var(--fh-fg-on-surface); border: 1px solid var(--fh-border); }
.fh-btn.fh-brand { background: var(--fh-brand); color: #fff; }
.fh-btn.fh-brand-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.fh-btn.fh-danger { background: rgba(220,38,38,.08); color: #dc2626; border: 1px solid rgba(220,38,38,.2); }

/* ---------- Quick actions row ---------- */
.fh-quick-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: relative; }
.fh-quick-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; color: #0e0e0e;
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.25);
  min-width: 220px; padding: 6px; z-index: 20;
}
.fh-quick-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; }
.fh-quick-dropdown a:hover { background: #f5f5f5; }

/* ---------- Sales card (dashboard) ---------- */
.fh-sales-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.fh-sales-card { background: var(--fh-surface); color: var(--fh-fg-on-surface); border: 1px solid var(--fh-border); border-radius: var(--fh-radius-lg); box-shadow: var(--fh-shadow); overflow: hidden; }
.fh-sales-card .fh-head { padding: 18px 20px; border-bottom: 1px solid var(--fh-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fh-sales-card .fh-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fh-muted-on-surface); margin-bottom: 4px; }
.fh-sales-card .fh-head h2 { font-size: 18px; font-weight: 800; }
.fh-sales-card .fh-amount { font-size: 24px; font-weight: 900; font-family: var(--fh-font-display); letter-spacing: -.01em; }
.fh-sales-card.fh-precommande { border-top: 3px solid var(--fh-brand); }
.fh-sales-card.fh-precommande .fh-amount { color: var(--fh-brand); }
.fh-sales-card.fh-libre { border-top: 3px solid #0e0e0e; }
.fh-sales-card.fh-libre .fh-amount { color: #0e0e0e; }
.fh-sales-card .fh-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-bottom: 1px solid var(--fh-border); }
.fh-sales-card .fh-stats > div { padding: 14px 16px; border-right: 1px solid var(--fh-border); }
.fh-sales-card .fh-stats > div:last-child { border-right: none; }
.fh-sales-card .fh-stats .fh-lbl { font-size: 10px; color: var(--fh-muted-on-surface); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.fh-sales-card .fh-stats .fh-val { font-size: 18px; font-weight: 800; font-family: var(--fh-font-display); }
.fh-sales-card .fh-listing-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--fh-border); text-decoration: none; color: inherit; transition: background .12s; }
.fh-sales-card .fh-listing-row:last-child { border-bottom: none; }
.fh-sales-card .fh-listing-row:hover { background: var(--fh-surface-alt); }
.fh-sales-card .fh-listing-row .fh-name { flex: 1; font-weight: 700; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-sales-card .fh-listing-row .fh-meta { font-size: 11px; color: var(--fh-muted-on-surface); white-space: nowrap; }
.fh-sales-card .fh-listing-row .fh-amt { font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; }
.fh-sales-card .fh-foot { padding: 12px 16px; background: var(--fh-surface-alt); display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.fh-sales-card .fh-foot a { font-weight: 700; color: var(--fh-accent); text-decoration: none; }

/* ---------- 3 volets (À traiter) ---------- */
.fh-volets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.fh-volet { background: var(--fh-surface); color: var(--fh-fg-on-surface); border: 1px solid var(--fh-border); border-radius: var(--fh-radius-lg); box-shadow: var(--fh-shadow); overflow: hidden; display: flex; flex-direction: column; border-top: 3px solid #0e0e0e; }
.fh-volet.fh-financier { border-top-color: #166534; }
.fh-volet-head { padding: 14px 16px; border-bottom: 1px solid var(--fh-border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fh-volet-head .fh-title { display: flex; align-items: center; gap: 8px; }
.fh-volet-head .fh-emoji { font-size: 18px; }
.fh-volet-head h2 { font-size: 14px; font-weight: 800; }
.fh-volet-head .fh-sub { font-size: 11px; color: var(--fh-muted-on-surface); margin-top: 1px; }
.fh-volet-head .fh-count { font-size: 22px; font-weight: 900; font-family: var(--fh-font-display); line-height: 1; color: #0e0e0e; }
.fh-volet.fh-financier .fh-count { color: #166534; }
.fh-volet-body { flex: 1; padding: 4px 0; }
.fh-volet-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--fh-border); text-decoration: none; color: inherit; transition: background .12s; align-items: flex-start; }
.fh-volet-item:last-child { border-bottom: none; }
.fh-volet-item:hover { background: var(--fh-surface-alt); }
.fh-volet-item .fh-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #0e0e0e; }
.fh-volet-item .fh-dot.fh-red { background: #dc2626; }
.fh-volet-item .fh-body { flex: 1; min-width: 0; }
.fh-volet-item .fh-body .fh-t { font-weight: 700; font-size: 12px; line-height: 1.3; }
.fh-volet-item .fh-body .fh-s { font-size: 11px; color: var(--fh-muted-on-surface); margin-top: 2px; }
.fh-volet-item .fh-amt { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fh-volet-foot { padding: 10px 16px; background: var(--fh-surface-alt); font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.fh-volet-foot a { font-weight: 700; color: var(--fh-accent); text-decoration: none; }

/* ---------- Section titles ---------- */
/* Adapts to light or dark context: parent can override --fh-section-fg */
.fh-section-title { font-size: 11px; color: var(--fh-section-fg, var(--fh-muted-on-surface)); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 0 0 10px; }
.fh-page-dark .fh-section-title { color: var(--fh-muted); }
.fh-section-title.fh-with-link { display: flex; justify-content: space-between; align-items: center; }
.fh-section-title.fh-with-link a { font-size: 12px; color: #9a7830; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: 0; }
.fh-page-dark .fh-section-title.fh-with-link a { color: var(--fh-accent); }
.fh-row { display: flex; align-items: center; gap: 10px; }
.fh-row.fh-between { justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fh-grid-kpi, .fh-sales-grid { grid-template-columns: 1fr; }
  .fh-volets { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fh-v1 { font-size: 14px; }
  .fh-hero { padding: 24px 20px; border-radius: var(--fh-radius); margin-bottom: 16px; }
  .fh-hero h1 { font-size: 22px; }
  .fh-hero p { font-size: 12px; }
  .fh-grid-kpi { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .fh-kpi { padding: 14px; }
  .fh-kpi .fh-value { font-size: 20px; }
  .fh-page-header h1 { font-size: 20px; }
}

/* ════════════════════════════════════════════════════════════════════
   V1 Utilities — single design system
   Buttons, inputs, cards, tables, tabs, badges, toasts, breadcrumbs
   ════════════════════════════════════════════════════════════════════ */

/* ---------- Buttons (canonical) ---------- */
.fh-btn-v1 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #0e0e0e; color: #fff; border: 1.5px solid #0e0e0e; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none; transition: .15s; min-height: 36px; white-space: nowrap; }
.fh-btn-v1:hover { background: #262626; border-color: #262626; color: #fff; }
.fh-btn-v1:disabled, .fh-btn-v1.fh-disabled { opacity: .45; cursor: not-allowed; }

.fh-btn-ghost-v1 { background: #fff; color: #0e0e0e; border-color: #d4d4d4; }
.fh-btn-ghost-v1:hover { background: #fafafa; border-color: #0e0e0e; color: #0e0e0e; }

.fh-btn-success-v1 { background: #166534; border-color: #166534; }
.fh-btn-success-v1:hover { background: #15803d; border-color: #15803d; }

.fh-btn-danger-v1 { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.fh-btn-danger-v1:hover { background: #fee2e2; border-color: #f87171; color: #991b1b; }

.fh-btn-gold-v1 { background: var(--fh-accent); color: #0a0a0a; border-color: var(--fh-accent); }
.fh-btn-gold-v1:hover { background: #b8962b; border-color: #b8962b; color: #0a0a0a; }

.fh-btn-sm-v1 { padding: 5px 10px; font-size: 11px; min-height: 28px; }
.fh-btn-lg-v1 { padding: 12px 22px; font-size: 14px; min-height: 44px; }
.fh-btn-block-v1 { width: 100%; }

/* Touch target ≥ 44px on mobile */
@media (max-width: 640px) {
  .fh-btn-v1, .fh-btn-ghost-v1, .fh-btn-success-v1, .fh-btn-danger-v1, .fh-btn-gold-v1 { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .fh-btn-sm-v1 { min-height: 36px; padding: 7px 12px; font-size: 12px; }
}

/* ---------- Inputs / forms ---------- */
.fh-input { display: block; width: 100%; padding: 9px 12px; border: 1px solid #d4d4d4; border-radius: 8px; font-size: 13px; background: #fff; color: #0e0e0e; font-family: var(--fh-font-body); transition: border-color .15s; min-height: 38px; }
.fh-input:focus { border-color: #0e0e0e; outline: none; box-shadow: 0 0 0 3px rgba(14,14,14,.06); }
.fh-input:disabled { background: #fafafa; color: #737373; cursor: not-allowed; }
.fh-input.fh-error { border-color: #dc2626; }

.fh-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #525252; letter-spacing: .06em; margin-bottom: 5px; }
.fh-help { font-size: 11px; color: #a3a3a3; margin-top: 4px; }
.fh-help.fh-error { color: #dc2626; }

.fh-fieldset { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fh-fieldset-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #737373; margin-bottom: 14px; }

@media (max-width: 640px) {
  .fh-input { min-height: 44px; padding: 11px 14px; font-size: 14px; }
  .fh-fieldset { padding: 14px 16px; }
}

/* ---------- Tables (V1) ---------- */
.fh-table-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
.fh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fh-table thead th { background: #fafafa; padding: 9px 12px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #737373; font-weight: 800; border-bottom: 1px solid #e5e5e5; }
.fh-table thead th.fh-num { text-align: right; }
.fh-table tbody td { padding: 10px 12px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.fh-table tbody tr:hover { background: #fafafa; }
.fh-table tbody td.fh-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.fh-table tfoot td { padding: 10px 12px; background: #fafafa; font-weight: 800; border-top: 2px solid #e5e5e5; }
.fh-table-empty { padding: 36px 16px; text-align: center; color: #a3a3a3; font-size: 13px; }

@media (max-width: 640px) {
  .fh-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fh-table thead th, .fh-table tbody td { padding: 8px 10px; font-size: 12px; }
}

/* ---------- Tabs ---------- */
.fh-tabs { display: flex; gap: 2px; border-bottom: 2px solid #f0f0f0; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.fh-tabs::-webkit-scrollbar { display: none; }
.fh-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: #737373; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: .15s; }
.fh-tab:hover { color: #0e0e0e; }
.fh-tab.fh-active { color: #0e0e0e; font-weight: 800; border-bottom-color: #0e0e0e; }

/* ---------- Badges / pills (canonical, repaired) ---------- */
.fh-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.fh-tag-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.fh-tag-warn    { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.fh-tag-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.fh-tag-info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.fh-tag-neutral { background: #f5f5f5; color: #525252; border: 1px solid #e5e5e5; }
.fh-tag-gold    { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }

/* ---------- Toast / Flash ---------- */
/* #flash-toast est en position fixed top-right pour ne pas pousser le contenu
   en flow normal. Sans ça, l'insertion d'un toast (ex. sauvegarde grille
   /orders/:id/grid) faisait "sauter" la page d'écriture. Salim 2026-05-06. */
#flash-toast {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 1000;
  width: min(380px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
#flash-toast .fh-toast { pointer-events: auto; margin-bottom: 0; box-shadow: 0 8px 24px rgba(0,0,0,.10); }
@media (max-width: 720px) {
  #flash-toast { top: 72px; right: 8px; left: 8px; width: auto; }
}

.fh-toast { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1.5px solid #e5e5e5; border-left: 4px solid #0e0e0e; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.06); animation: fh-toast-in .25s ease-out; }
.fh-toast.fh-toast-success { background: #f0fdf4; border-color: #bbf7d0; border-left-color: #166534; color: #166534; }
.fh-toast.fh-toast-warn    { background: #fffbeb; border-color: #fde68a; border-left-color: #d97706; color: #92400e; }
.fh-toast.fh-toast-danger  { background: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; color: #991b1b; }
.fh-toast .fh-toast-icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.fh-toast .fh-toast-body { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.5; }
.fh-toast .fh-toast-close { background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 16px; padding: 0 4px; line-height: 1; }
.fh-toast .fh-toast-close:hover { opacity: 1; }
@keyframes fh-toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- Breadcrumbs ---------- */
.fh-breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #737373; margin-bottom: 14px; flex-wrap: wrap; }
.fh-breadcrumbs a { color: #525252; text-decoration: none; font-weight: 600; }
.fh-breadcrumbs a:hover { color: #0e0e0e; text-decoration: underline; }
.fh-breadcrumbs .fh-bc-sep { color: #d4d4d4; font-weight: 400; }
.fh-breadcrumbs .fh-bc-current { color: #0e0e0e; font-weight: 700; }

/* ---------- Empty state ---------- */
.fh-empty { padding: 48px 24px; text-align: center; background: #fafafa; border: 1px dashed #d4d4d4; border-radius: 12px; }
.fh-empty .fh-empty-icon { font-size: 36px; margin-bottom: 10px; opacity: .6; }
.fh-empty .fh-empty-title { font-size: 14px; font-weight: 800; color: #0e0e0e; margin-bottom: 4px; }
.fh-empty .fh-empty-sub { font-size: 12px; color: #737373; margin-bottom: 14px; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════════════════════
   Bold hero variant — for marquee pages (dashboard, campaign show)
   Inspired by editorial / SaaS premium (Grok, Stripe, Linear)
   ════════════════════════════════════════════════════════════════════ */
.fh-hero-bold {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1c3d2b 100%);
  color: #fff;
  border-radius: 14px;
  padding: 44px 40px 38px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28,61,43,.15), 0 1px 0 rgba(255,255,255,.03) inset;
}
.fh-hero-bold::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 80% 0%, rgba(201,168,76,.18), transparent 60%);
  pointer-events: none;
}
.fh-hero-bold > * { position: relative; }
.fh-hero-bold .fh-eyebrow {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fh-accent);
  opacity: .9;
  margin-bottom: 14px;
}
.fh-hero-bold h1 {
  font-family: var(--fh-font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 0 12px;
  color: #fff;
}
.fh-hero-bold p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin: 0 0 18px;
}
.fh-hero-bold .fh-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fh-hero-bold .fh-btn-v1 { background: var(--fh-accent); color: #0a0a0a; border-color: var(--fh-accent); }
.fh-hero-bold .fh-btn-v1:hover { background: #b8962b; border-color: #b8962b; color: #0a0a0a; }
.fh-hero-bold .fh-btn-ghost-v1 { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.fh-hero-bold .fh-btn-ghost-v1:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }

@media (max-width: 640px) {
  .fh-hero-bold { padding: 24px 18px 22px; border-radius: 12px; margin-bottom: 18px; }
  .fh-hero-bold h1 { font-size: 28px; }
  .fh-hero-bold p { font-size: 13px; line-height: 1.5; }
  .fh-hero-bold .fh-eyebrow { font-size: 9px; letter-spacing: .18em; margin-bottom: 10px; }
  .fh-hero-bold .fh-hero-actions { gap: 6px; }
  .fh-hero-bold .fh-hero-actions .fh-btn-v1 { font-size: 13px; padding: 9px 14px; min-height: 40px; }
}

/* Harmonisation form-card legacy (utilisée dans 30+ vues) sur le V1 fieldset */
.form-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (max-width: 640px) {
  .form-card { padding: 14px 16px; border-radius: 10px; }
}

/* ---------- Mobile escape hatches ---------- */
@media (max-width: 640px) {
  .fh-row { flex-wrap: wrap; }
  .fh-hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .fh-show-mobile { display: none !important; }
}
