/* ============================================
   ClinStudy DS v2 — Components (préfixe .ds-*)
   ============================================
   Toutes les classes sont préfixées .ds- pour ne pas
   écraser le legacy style.css tant que les écrans n'ont
   pas été migrés un à un.
*/

/* ========== BUTTONS ========== */
.ds-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-md);
  background: var(--ds-bg-elevated); color: var(--ds-fg);
  border: 1px solid var(--ds-border-strong);
  font-size: var(--text-base); font-weight: 500; font-family: var(--font-ui);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap; cursor: pointer;
}
.ds-btn:hover { background: var(--ds-bg-subtle); border-color: var(--n-300); }
.ds-btn:active { transform: translateY(1px); }
.ds-btn:focus-visible { outline: none; box-shadow: var(--ring); }

.ds-btn-primary {
  background: var(--brand-teal-500); color: white;
  border-color: var(--brand-teal-600);
  box-shadow: var(--sh-sm), var(--sh-inset);
}
.ds-btn-primary:hover {
  background: var(--brand-teal-600); border-color: var(--brand-teal-700);
}
.ds-btn-ghost { background: transparent; border-color: transparent; color: var(--ds-fg-muted); }
.ds-btn-ghost:hover { background: var(--ds-bg-subtle); color: var(--ds-fg); }
.ds-btn-danger {
  background: var(--danger-500); color: white;
  border-color: var(--danger-700);
}
.ds-btn-sm { padding: 6px 10px; font-size: var(--text-sm); border-radius: var(--r-sm); }
.ds-btn-lg { padding: 11px 18px; font-size: var(--text-md); border-radius: var(--r-md); }

/* ========== PILLS / BADGES ========== */
.ds-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--r-full);
  background: var(--ds-bg-subtle); color: var(--ds-fg-muted);
  font-size: var(--text-xs); font-weight: 500; font-family: var(--font-ui);
  border: 1px solid var(--ds-border);
  line-height: 1.4;
}
.ds-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.ds-pill-success { background: var(--success-50); color: var(--success-700); border-color: transparent; }
.ds-pill-warning { background: var(--warning-50); color: var(--warning-700); border-color: transparent; }
.ds-pill-danger  { background: var(--danger-50);  color: var(--danger-700);  border-color: transparent; }
.ds-pill-info    { background: var(--info-50);    color: var(--info-700);    border-color: transparent; }
.ds-pill-brand   { background: var(--brand-teal-50); color: var(--brand-teal-700); border-color: transparent; }

/* ========== CARDS ========== */
.ds-card {
  background: var(--ds-bg-elevated);
  border: 1px solid var(--ds-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
.ds-card-hd {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--ds-border);
  display: flex; align-items: center; justify-content: space-between;
}
.ds-card-bd { padding: var(--s-5); }
.ds-card-title { font-size: var(--text-md); font-weight: 600; color: var(--ds-fg); }

.ds-card.lift { transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.ds-card.lift:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ========== INPUTS ========== */
.ds-input {
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--ds-bg-elevated); color: var(--ds-fg);
  border: 1px solid var(--ds-border-strong);
  font-size: var(--text-sm); font-family: var(--font-ui);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
  width: 100%;
}
.ds-input:focus {
  outline: none; border-color: var(--brand-teal-500);
  box-shadow: 0 0 0 3px var(--brand-teal-100);
}

/* ========== KBD ========== */
.ds-kbd {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 5px; border-radius: 4px;
  background: var(--ds-bg-subtle); border: 1px solid var(--ds-border);
  color: var(--ds-fg-muted);
  box-shadow: 0 1px 0 var(--ds-border-strong);
}

/* ========== SCALE BUTTON (BREAST-Q) ========== */
.ds-scale-btn {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--ds-bg-elevated); border: 1px solid var(--ds-border-strong);
  font-family: var(--font-mono); font-size: 14px; color: var(--ds-fg);
  transition: all var(--t-fast) var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ds-scale-btn:hover { border-color: var(--brand-teal-500); }
.ds-scale-btn.active {
  background: var(--brand-teal-500); color: white; border-color: var(--brand-teal-600);
  box-shadow: 0 2px 8px rgba(15,107,112,.3);
}

/* ========== PROGRESS BAR ========== */
.ds-progress {
  width: 100%; height: 6px;
  background: var(--ds-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.ds-progress-fill {
  height: 100%; width: 0;
  background: var(--brand-teal-500);
  border-radius: var(--r-full);
  transition: width 1100ms var(--ease);
}

/* ========== GLOBAL HEADER UPGRADE ==========
   Promote every .page-header h1 to editorial typography sans toucher
   aux 20+ appels render*() qui construisent ces headers.
   Proto Clinstudy V5 — H1 XXL Instrument Serif italic. */
.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.028em;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  color: var(--ds-fg);
}
.page-header h1 em {
  font-style: italic;
  font-family: var(--font-editorial);
  color: var(--brand-teal-500);
}
.page-header p,
.page-header .sh-sub {
  color: var(--ds-fg-muted);
  font-size: 14px;
  margin-top: 10px;
  line-height: var(--lh-base);
}

/* Eyebrow mono above H1 pattern — if render adds .page-header-eyebrow. */
.page-header-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ds-fg-subtle);
  margin: 0 0 12px;
}

/* ========== GLOBAL MODAL + CARD TITLE UPGRADE ==========
   Typography éditoriale pour :
   - les modales (.modal-title)
   - les titres de cartes (.card-title)
   - les titres de sections screen-hero (.sh-title)
   - les titres de bloc (.bloc-title)
   Sans toucher aux layouts existants. */
.modal-title,
.card-title,
.sh-title,
.bloc-title {
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.modal-title em, .card-title em, .sh-title em, .bloc-title em {
  font-style: italic;
  font-family: var(--font-editorial);
}

/* Stat values (.stat-val / .stat-value) — ensure editorial even
   when a render*() injected the class without ds-editorial. */
.stat-val, .stat-value {
  font-family: var(--font-editorial);
  font-weight: 400;
}

/* ============================================================
   PAGE HERO — pattern proto Clinstudy V5 Dock
   Eyebrow mono uppercase → H1 XXL Instrument Serif italic →
   subtitle + optional live dot + optional actions droite.
   ============================================================ */
.ds-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding-top: 8px;
}
.ds-page-hero-body { flex: 1; min-width: 280px; }
.ds-page-hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ds-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ds-fg-subtle);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ds-eyebrow-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ds-fg-subtle);
  opacity: 0.6;
  flex-shrink: 0;
}

.ds-h1-editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ds-fg);
  margin: 0;
}
.ds-h1-editorial em {
  font-style: italic;
  font-family: var(--font-editorial);
  color: var(--brand-teal-500);
}

.ds-h2-editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ds-fg);
  margin: 0 0 6px;
}
.ds-h2-editorial em {
  font-style: italic;
  font-family: var(--font-editorial);
  color: var(--brand-teal-500);
}

.ds-page-hero-subtitle {
  font-size: 14px;
  color: var(--ds-fg-muted);
  margin-top: 12px;
  line-height: var(--lh-base);
}

.ds-page-hero-context {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ds-fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
  margin: 18px 0 8px;
}

/* ============================================================
   TAB PILLS — proto pattern under H1 (filled black when active)
   ============================================================ */
.ds-tab-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}
.ds-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px solid var(--ds-border);
  color: var(--ds-fg-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  font-family: var(--font-ui);
}
.ds-tab-pill:hover {
  background: var(--ds-bg-subtle);
  color: var(--ds-fg);
  border-color: var(--ds-border-strong);
}
.ds-tab-pill.active {
  background: var(--ds-fg);
  border-color: var(--ds-fg);
  color: var(--ds-bg-elevated);
}
.ds-tab-pill-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: currentColor;
  opacity: 0.6;
}
.ds-tab-pill.active .ds-tab-pill-count { opacity: 0.75; }

/* ============================================================
   KPI CARD — proto editorial: eyebrow label / XL number /
   delta pill / sparkline right.
   ============================================================ */
.ds-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.ds-kpi-card {
  background: var(--ds-bg-elevated);
  border: 1px solid var(--ds-border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-xs);
  position: relative;
  overflow: hidden;
  min-height: 150px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.ds-kpi-card.lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.ds-kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ds-fg-muted);
  line-height: 1.3;
  max-width: 150px;
}
.ds-kpi-value {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ds-fg);
}
.ds-kpi-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}
.ds-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-ui);
  line-height: 1.4;
  flex-shrink: 0;
}
.ds-kpi-delta-up   { background: var(--success-50); color: var(--success-700); }
.ds-kpi-delta-down { background: var(--danger-50);  color: var(--danger-700);  }
.ds-kpi-delta-flat { background: var(--ds-bg-subtle); color: var(--ds-fg-muted); }
.ds-kpi-spark {
  flex: 0 0 auto;
  width: 88px; height: 36px;
  display: block;
}

/* ============================================================
   FLOATING DOCK V5 — proto Clinstudy.
   Conteneur fixed bottom centered, items mirror sidebar top-level
   categories. Sub-items en popup au click.
   ============================================================ */
#v5-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  pointer-events: none;
}
body[data-patient-fullscreen="true"] #v5-dock,
body[data-login-screen="true"] #v5-dock { display: none !important; }
/* Mobile : dock reste visible (même UX que desktop). On colle au bord bas
   avec safe-area-inset, et on laisse le scroll horizontal gérer le nombre
   d'items. La mobile-bottom-nav legacy est masquée quand V5 est actif. */
@media (max-width: 768px) {
  #v5-dock {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 8px; right: 8px;
    transform: none;
    width: auto;
  }
  body[data-dock="v5"] .mobile-bottom-nav { display: none !important; }
}
.ds-dock {
  background: color-mix(in srgb, var(--ds-bg-elevated) 92%, transparent);
  border: 1px solid var(--ds-border);
  border-radius: 22px;
  padding: 6px 8px;
  box-shadow: var(--sh-xl);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}
@media (max-width: 768px) {
  .ds-dock {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    border-radius: 18px;
    padding: 4px 6px;
  }
  .ds-dock-item { min-width: 0; flex: 1 1 auto; padding: 8px 10px; }
  .ds-dock-item .ds-dock-item-label { font-size: 10px; }
}
.ds-dock::-webkit-scrollbar { display: none; }
.ds-dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 14px;
  color: var(--ds-fg-muted);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: transparent;
  border: none;
  position: relative;
  min-width: 68px;
  flex-shrink: 0;
  font-family: var(--font-ui);
}
.ds-dock-item .ds-dock-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ds-dock-item .ds-dock-item-icon .material-symbols-outlined { font-size: 20px; }
.ds-dock-item .ds-dock-item-label {
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}
.ds-dock-item:hover { background: var(--ds-bg-subtle); color: var(--ds-fg); }
.ds-dock-item.active {
  background: var(--brand-teal-500);
  color: white;
  box-shadow: 0 2px 8px rgba(15,107,112,.25), var(--sh-inset);
}
.ds-dock-item[aria-expanded="true"] {
  background: var(--ds-bg-subtle);
  color: var(--ds-fg);
}
.ds-dock-badge {
  position: absolute;
  top: 2px; right: 6px;
  background: var(--danger-500);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px; height: 14px;
  line-height: 14px;
  padding: 0 4px;
  border-radius: var(--r-full);
  box-shadow: 0 0 0 1.5px var(--ds-bg-elevated);
  font-family: var(--font-ui);
}
.ds-dock-subdot {
  position: absolute;
  top: 5px; right: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 2px var(--ds-bg-elevated), 0 0 8px rgba(29,138,94,0.4);
  z-index: 1;
}
.ds-dock-item.active .ds-dock-subdot {
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand-teal-500);
}

/* Popup per dock category */
.ds-dock-popup {
  position: fixed;
  bottom: 88px;
  z-index: 85;
  background: var(--ds-bg-elevated);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  box-shadow: var(--sh-xl);
  padding: 6px;
  min-width: 240px;
  max-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  animation: ds-fade-up 180ms var(--ease);
}
.ds-dock-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: var(--notch-x, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--ds-bg-elevated);
  border-right: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
}
.ds-dock-popup-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-fg-subtle);
  padding: 8px 12px 4px;
}
.ds-dock-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ds-fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.ds-dock-popup-item:hover { background: var(--ds-bg-subtle); }
.ds-dock-popup-item.active {
  background: var(--brand-teal-50);
  color: var(--brand-teal-700);
}
.ds-dock-popup-item .ds-dock-popup-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; color: var(--ds-fg-muted);
  flex-shrink: 0;
}
.ds-dock-popup-item.active .ds-dock-popup-icon { color: var(--brand-teal-500); }
.ds-dock-popup-item .ds-dock-popup-label { flex: 1; }
.ds-dock-popup-item .ds-dock-popup-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--ds-bg-subtle);
  color: var(--ds-fg-muted);
  padding: 1px 7px;
  border-radius: var(--r-full);
}

/* Shell full V5 — masque la sidebar legacy et libère le main.
   Activé via body[data-dock="v5"] par dock-v5.js. */
body[data-dock="v5"] .sidebar { display: none !important; }
body[data-dock="v5"] #main,
body[data-dock="v5"] .main { margin-left: 0 !important; }
body[data-dock="v5"] .content { padding-bottom: 110px; /* espace pour le dock */ }
@media (max-width: 768px) {
  body[data-dock="v5"] .sidebar { display: flex !important; }
  body[data-dock="v5"] #main,
  body[data-dock="v5"] .main { margin-left: inherit !important; }
}

/* ============================================================
   APPLICATION MENU (topbar, admin/superadmin only)
   Proto Clinstudy V5 — grid icon + "Application" + chevron.
   Dropdown avec 3 sections : Personnalisation / Infrastructure / Contenu.
   ============================================================ */
.ds-app-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--ds-bg-subtle);
  color: var(--ds-fg);
  border: 1px solid var(--ds-border);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms var(--ease);
  white-space: nowrap;
}
.ds-app-menu-btn:hover {
  background: var(--ds-bg-elevated);
  border-color: var(--ds-border-strong);
}
.ds-app-menu-btn[aria-expanded="true"] {
  background: var(--ds-bg-elevated);
  border-color: var(--ds-border-strong);
}
.ds-app-menu-btn .ds-app-menu-btn-icon .material-symbols-outlined,
.ds-app-menu-btn .ds-app-menu-btn-chevron .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}
.ds-app-menu-btn .ds-app-menu-btn-chevron {
  transition: transform 140ms var(--ease);
  opacity: 0.7;
}
.ds-app-menu-btn[aria-expanded="true"] .ds-app-menu-btn-chevron {
  transform: rotate(180deg);
}

.ds-app-menu-dropdown {
  position: fixed;
  z-index: 120;
  background: var(--ds-bg-elevated);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  box-shadow: var(--sh-xl);
  padding: 8px;
  max-height: 520px;
  overflow-y: auto;
  animation: ds-fade-up 180ms var(--ease);
}
.ds-app-menu-dropdown-hd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ds-fg-subtle);
  padding: 8px 10px 6px;
}
.ds-app-menu-dropdown-group {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-fg-subtle);
  padding: 4px 10px 2px;
}
.ds-app-menu-dropdown-sep {
  height: 1px;
  background: var(--ds-border);
  margin: 6px 6px;
}
.ds-app-menu-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--ds-fg);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.ds-app-menu-dropdown-item:hover { background: var(--ds-bg-subtle); }
.ds-app-menu-dropdown-item.active {
  background: var(--brand-teal-50);
  color: var(--brand-teal-700);
}
.ds-app-menu-dropdown-item .ds-app-menu-dropdown-icon {
  color: var(--ds-fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex-shrink: 0;
}
.ds-app-menu-dropdown-item .ds-app-menu-dropdown-icon .material-symbols-outlined { font-size: 16px; line-height: 1; }
.ds-app-menu-dropdown-item.active .ds-app-menu-dropdown-icon { color: var(--brand-teal-500); }
.ds-app-menu-dropdown-item .ds-app-menu-dropdown-label { flex: 1; }

/* ============================================================
   SECTION HEADER — sous-section éditoriale (H2 with mono sub)
   ============================================================ */
.ds-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}
.ds-section-hd h2 {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ds-fg);
  margin: 0 0 4px;
}
.ds-section-hd h2 em {
  font-style: italic;
  font-family: var(--font-editorial);
  color: var(--brand-teal-500);
}
.ds-section-hd-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ds-fg-muted);
}

/* ============================================================
   DATA TABLE POLISH — table moderne proto-style
   ============================================================ */
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--ds-fg);
}
.ds-table thead th {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-fg-muted);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ds-border);
}
.ds-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ds-border);
  vertical-align: middle;
}
.ds-table tbody tr {
  transition: background var(--t-fast) var(--ease);
}
.ds-table tbody tr:hover {
  background: var(--ds-bg-subtle);
}
.ds-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   PLACEHOLDER STRIPE (existant, déplacé en bas) ==============
   ============================================================ */
/* ========== PLACEHOLDER STRIPE ========== */
.ds-placeholder-stripe {
  background-image: repeating-linear-gradient(
    135deg,
    var(--ds-bg-subtle) 0 8px,
    var(--ds-bg-sunken) 8px 16px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--ds-fg-muted);
  font-family: var(--font-mono); font-size: var(--text-xs);
  border-radius: var(--r-md);
}
