/* Onglet « Parts de marché » des fiches secteur, métier et narratif (fiche_parts.js, 06/10/2026).
   Tout est scopé par les deux hôtes : les fiches vivent dans .per-page, dont les règles
   génériques (boutons 14 px à !important, toute <div> à la racine d'un volet = une carte)
   s'appliquent aussi ici. Les pastilles reprennent celles de l'onglet Historique (.met-hz). */
#met-fiche-hote .pp-pane, #nrf-hote .pp-pane { display: flex; flex-direction: column; gap: 16px; }
#met-fiche-hote .pp-pane[hidden], #nrf-hote .pp-pane[hidden] { display: none; }

#met-fiche-hote .pp-cmd, #nrf-hote .pp-cmd {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 16px; margin: 2px 0 10px;
}
#met-fiche-hote .pp-grp, #nrf-hote .pp-grp { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
#met-fiche-hote .pp-grp:empty, #nrf-hote .pp-grp:empty { display: none; }
/* Les pastilles : celles de l'onglet Historique (.met-hz), redites ici à !important — la règle
   générique des boutons de la page (14 px, coins 24 px) et une règle propre à la fiche métier
   les repeignaient (l'état actif restait creux sur la fiche métier). */
#met-fiche-hote .pp-b, #nrf-hote .pp-b {
  display: inline-block !important; width: auto !important; margin: 0 !important;
  padding: 5px 13px !important; border-radius: 999px !important; cursor: pointer;
  border: 1px solid rgba(13,13,13,.14) !important; background: transparent !important;
  font: inherit !important; font-size: 11.5px !important; font-weight: 600 !important; line-height: 1.4 !important;
  color: #6B6B6B !important; box-shadow: none !important;
}
#met-fiche-hote .pp-b:hover, #nrf-hote .pp-b:hover { color: #23262B !important; border-color: rgba(13,13,13,.28) !important; }
#met-fiche-hote .pp-b.pp-b-on, #nrf-hote .pp-b.pp-b-on { background: #1B4FD8 !important; border-color: #1B4FD8 !important; color: #FFFFFF !important; }

#met-fiche-hote .pp-date, #nrf-hote .pp-date {
  min-height: 20px; margin: 0 0 6px; font-size: 12.5px; line-height: 20px; color: #4A4A4A;
  font-variant-numeric: tabular-nums;
}
#met-fiche-hote .pp-date b, #nrf-hote .pp-date b { color: #0D0D0D; }
#met-fiche-hote .pp-repos, #nrf-hote .pp-repos { color: #9A9A9A; font-size: 11.5px; }

#met-fiche-hote .pp-graphe, #nrf-hote .pp-graphe { position: relative; height: 420px; }

/* La légende EST la lecture : une pastille, le logo, le nom, la valeur, l'autre valeur. */
#met-fiche-hote .pp-leg, #nrf-hote .pp-leg {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(13,13,13,.07);
}
#met-fiche-hote .pp-li, #nrf-hote .pp-li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #3D3D3D;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
#met-fiche-hote .pp-li[role="button"], #nrf-hote .pp-li[role="button"] { cursor: pointer; }
#met-fiche-hote .pp-li[role="button"]:hover .pp-li-n, #nrf-hote .pp-li[role="button"]:hover .pp-li-n { text-decoration: underline; }
#met-fiche-hote .pp-li > i, #nrf-hote .pp-li > i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
#met-fiche-hote .pp-li b, #nrf-hote .pp-li b { color: #0D0D0D; font-weight: 700; }
#met-fiche-hote .pp-li em, #nrf-hote .pp-li em { font-style: normal; color: #9A9A9A; font-size: 11.5px; }
#met-fiche-hote .pp-li-vide, #nrf-hote .pp-li-vide { opacity: .5; }
#met-fiche-hote .pp-logo, #nrf-hote .pp-logo {
  width: 18px; height: 18px; border-radius: 50%; object-fit: contain; background: #FFFFFF; flex: none;
}
#met-fiche-hote .pp-logo-mono, #nrf-hote .pp-logo-mono {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: #EEF0F3; color: #6B6B6B; font-size: 9px; font-weight: 700; flex: none;
}

/* Qui gagne, qui perd */
#met-fiche-hote .pp-qt, #nrf-hote .pp-qt {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px;
}
#met-fiche-hote .pp-qt span, #nrf-hote .pp-qt span { font-size: 12.5px; color: #6B6B6B; }
#met-fiche-hote .pp-qt b, #nrf-hote .pp-qt b { font-size: 20px; font-weight: 800; color: #0D0D0D; }
#met-fiche-hote .pp-qt em, #nrf-hote .pp-qt em { font-style: normal; font-size: 12.5px; color: #8A8A8A; }
/* ⚠ display à !important : une règle de la page affiche en bloc les éléments role="button",
   et le classement s'empilait sur quatre lignes par membre. */
#met-fiche-hote .pp-r, #nrf-hote .pp-r {
  display: grid !important; grid-template-columns: minmax(150px, 1.1fr) 76px minmax(140px, 1.4fr) minmax(220px, 1.7fr) !important;
  align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid rgba(13,13,13,.06);
  font-variant-numeric: tabular-nums;
}
#met-fiche-hote .pp-r:last-child, #nrf-hote .pp-r:last-child { border-bottom: 0; }
#met-fiche-hote .pp-r[role="button"], #nrf-hote .pp-r[role="button"] { cursor: pointer; border-radius: 6px; }
#met-fiche-hote .pp-r[role="button"]:hover, #nrf-hote .pp-r[role="button"]:hover { background: rgba(13,13,13,.035); }
#met-fiche-hote .pp-r-n, #nrf-hote .pp-r-n {
  display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #1F1F1F;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#met-fiche-hote .pp-r-n i, #nrf-hote .pp-r-n i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
#met-fiche-hote .pp-r-d, #nrf-hote .pp-r-d { font-size: 13px; text-align: right; }
#met-fiche-hote .pp-r-b, #nrf-hote .pp-r-b { position: relative; height: 10px; background: #F3F4F6; border-radius: 5px; }
#met-fiche-hote .pp-r-z, #nrf-hote .pp-r-z { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9AA0A6; }
#met-fiche-hote .pp-r-bar, #nrf-hote .pp-r-bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
#met-fiche-hote .pp-r-x, #nrf-hote .pp-r-x { font-size: 12px; color: #6B6B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#met-fiche-hote .pp-lec, #nrf-hote .pp-lec { margin: 10px 0 0; font-size: 12px; color: #8A8A8A; }

#met-fiche-hote .pp-note summary, #nrf-hote .pp-note summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #3D3D3D; }
#met-fiche-hote .pp-note p, #nrf-hote .pp-note p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: #4A4A4A; }
#met-fiche-hote .pp-note .pp-src, #nrf-hote .pp-note .pp-src { color: #9A9A9A; font-size: 11.5px; }
#met-fiche-hote .pp-seul, #nrf-hote .pp-seul,
#met-fiche-hote .pp-attente, #nrf-hote .pp-attente { margin: 4px 0 8px; font-size: 13px; color: #6B6B6B; }

@media (max-width: 760px) {
  #met-fiche-hote .pp-graphe, #nrf-hote .pp-graphe { height: 300px; }
  #met-fiche-hote .pp-li, #nrf-hote .pp-li { white-space: normal; flex-wrap: wrap; }
  #met-fiche-hote .pp-r, #nrf-hote .pp-r { grid-template-columns: minmax(0, 1fr) 70px !important; row-gap: 4px; }
  #met-fiche-hote .pp-r-b, #nrf-hote .pp-r-b { grid-column: 1 / -1; }
  #met-fiche-hote .pp-r-x, #nrf-hote .pp-r-x { grid-column: 1 / -1; white-space: normal; }
}
