/* NxRoms v266 — cartes catalogue adaptées au ratio réel des jaquettes
   Vue grille uniquement. La vue liste conserve son format compact fixe. */

body.nx-v207-public:not(.nx207-list) #nx207GridContent.nx207-grid{
  align-items:start !important;
}

body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-card.game-card{
  min-height:0 !important;
  height:auto !important;
  align-self:start !important;
}

/* La zone jaquette ne force plus 226 px : elle prend la hauteur naturelle de l'image. */
body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-card .nx207-cover.game-cover{
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  overflow:hidden !important;
}

body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-cover img,
body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-cover img.fit-contain{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center top !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border-radius:0 !important;
}

/* Pas de zoom qui pourrait recouper une jaquette au survol. */
body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-card:hover .nx207-cover img,
body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-card:hover .nx207-cover img:not(.fit-contain){
  transform:none !important;
}

/* Les jeux sans image gardent une vignette lisible. */
body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-cover .nx207-no-cover{
  width:100% !important;
  min-height:226px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Informations compactes : la carte s'arrête juste après son contenu. */
body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-info.game-info{
  flex:0 0 auto !important;
  min-height:0 !important;
  height:auto !important;
  padding:12px 13px 13px !important;
}

body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-title,
body.nx-v207-public:not(.nx207-list) #nx207GridContent .game-info h3{
  min-height:0 !important;
}

body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-meta,
body.nx-v207-public:not(.nx207-list) #nx207GridContent .game-info .meta{
  margin-top:8px !important;
  padding-top:0 !important;
}

@media(max-width:640px){
  body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-card.game-card{
    min-height:0 !important;
    height:auto !important;
  }
  body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-card .nx207-cover.game-cover{
    height:auto !important;
    min-height:0 !important;
  }
  body.nx-v207-public:not(.nx207-list) #nx207GridContent .nx207-cover .nx207-no-cover{
    min-height:194px !important;
  }
}
