/* ETHNOS R491 — correction prouvée badge Officiel + centrage Fermer Annuaire.
   Base figée : R490.

   1) Badge : R490 réduisait seulement le padding vertical (4/3 px), ce qui
      produisait un delta trop faible. R491 réduit aussi le line-height et fixe
      un padding vertical plus compact, sans toucher à la marge extérieure R489.

   2) Annuaire : depuis R282, Fermer est enfant de .memberDirectoryBottomActions,
      et non plus enfant direct de .memberDirectoryContent. Les sélecteurs R213
      et R490 ne ciblaient donc pas le bouton visible dans cette structure. */

/* 1 — Badge Officiel : hauteur réellement réduite, largeur/écart R489 préservés. */
.memberIdentityText [data-member-name] > .r484OfficialBadge{
  height:auto !important;
  min-height:0 !important;
  padding-block:2px !important;
  line-height:1.05 !important;
}
@media(max-width:1366px){
  .memberIdentityText [data-member-name] > .r484OfficialBadge{
    padding-block:1px !important;
    line-height:1.05 !important;
  }
}

/* 2 — Annuaire : appliquer le centrage au DOM réellement actif depuis R282. */
html[data-ethnos-ui] body
#memberDrawer-directory .memberDirectoryBottomActions
> button.memberDirectoryInlineClose{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Préserver strictement la disposition spéciale déjà validée en 1280x720. */
@media (width:1280px) and (height:720px){
  html[data-ethnos-ui] body
  #memberDrawer-directory .memberDirectoryBottomActions
  > button.memberDirectoryInlineClose{
    margin:0 !important;
  }
}
