.page-wrap {
  width: 95%;
  max-width: none;
  margin: 0 auto;
  padding: var(--espace-lg) var(--espace-md);
  box-sizing: border-box;
  min-width: 0;
}

.page-title {
  font-family: var(--font-titres);
  color: var(--c-titre);
  margin: 0 0 var(--espace-xs) 0;
  font-size: 28px;
  line-height: 1.2;
}

.page-subtitle {
  margin: 0 0 var(--espace-lg) 0;
  color: var(--c-texte-clair);
  max-width: 80ch;
}

.taxo-card {
  box-sizing: border-box;
  min-width: 0;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--espace-md);
}

.taxo-head {
  display: flex;
  gap: var(--espace-md);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: var(--espace-md);
}

.taxo-meta {
  color: var(--c-texte-clair);
  font-size: 14px;
  margin: 0;
}

.taxo-table {
  width: 100%;
  box-sizing: border-box;
  border-collapse: collapse;
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--c-surface-1);
}

.taxo-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 12px 12px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border-subtle);
  color: var(--c-titre);
  vertical-align: top;
}

.taxo-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--c-border-subtle);
  vertical-align: top;
  color: var(--c-texte);
  font-size: 14px;
}

.taxo-table tbody tr:hover td {
  background: var(--c-surface-hover);
}

.badge-niveau {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: var(--font-titres);
}

.pastille {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c-primaire);
  box-shadow: 0 0 0 3px var(--c-bleu-500);
  flex: 0 0 auto;
  margin-top: 2px;
}
.niveau-desc {
  margin-top: 6px;
  color: var(--c-texte-clair);
  font-weight: 400;
  font-family: var(--font-corps);
  font-size: 13px;
  line-height: 1.45;
  max-width: 70ch;
}

.verbes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-border-subtle);
  background: var(--c-surface-1);
  font-size: 13px;
  color: var(--c-texte);
  cursor: default;
  user-select: text;
  max-width: 100%;
  box-sizing: border-box;
}

.chip strong {
  font-weight: 600;
}

.chip em {
  font-style: normal;
  color: var(--c-texte-muted);
}
.chip:hover {
  background: var(--c-bleu-500);
}
/* ============================================================
   TOOLTIP LOCAL (taxonomies) — éviter le moteur global (global.js)
   ============================================================ */

.tooltip-local {
  position: relative;
  display: inline-block;
  min-width: 16px;
  min-height: 16px;
  cursor: help;
}

.tooltip-local[data-tooltip]:hover::after,
.tooltip-local[data-tooltip]:focus-visible::after {
  opacity: 1;
  pointer-events: none;
}

.tooltip-local[data-tooltip]::after {
  content: attr(data-tooltip);
  position: fixed;

  background: var(--c-surface-1);
  color: var(--c-texte);

  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--c-border-strong);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.16);

  font-size: 0.85rem;
  line-height: 1.45;

  width: max-content;
  max-width: 260px;

  opacity: 0;
  transition: opacity 0.15s ease-out;

  pointer-events: none;
  z-index: 10000;

  top: var(--tooltip-top);
  left: var(--tooltip-left);
}

/* Responsive: sur mobile, on empile mieux */
@media (max-width: 720px) {
  .page-wrap { padding: var(--espace-md); }
  .page-title { font-size: 22px; }
  .taxo-table thead { display: none; }
  .taxo-table, .taxo-table tbody, .taxo-table tr, .taxo-table td { display: block; width: 100%; }
  .taxo-table tbody tr { border-bottom: 1px solid var(--c-border-subtle); }
  .taxo-table tbody td { border-bottom: none; padding: 10px 12px; }
  .taxo-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--c-texte-muted);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
}
.taxo-citation {
  margin: 0 0 var(--espace-md) 0;
  padding-left: 14px;

   font-size: 14px;
  line-height: 1.55;

  color: var(--c-texte-clair);

  border-left: 3px solid var(--c-mauve-200);
}

.taxo-citation em {
  font-style: italic;
}
