/*
 * Fiche du jeu, refonte du 22/11/2026 (Ben, _doc/_todo/prompt_refonte_fiche_jeu.md et fiche_donnees_voxgaming.md).
 * Appelée par views/catalog/item.php avec ?v=_VERSION_ : monter $version dans config/init.php en prod à chaque modification.
 *
 * 1. Grille commune (ordinateur) : les deux colonnes partagent les mêmes lignes, les bords des cartes tombent toujours en face.
 *      ligne 1 : onglets | onglets ; ligne 2 : carte du jeu | Acheter / Argus (ou Prix) ;
 *      ligne 3 : DATA VOXGAMING | Meilleur prix relevé, classement officiel ; lignes 4+ : DATA <réseau> | « Et toi » ou progression.
 *    Téléphone et tablette : tout s'empile (carte du jeu, DATA VOXGAMING, DATA <réseau>, puis la colonne prix).
 * 2. Pastilles jumelles VoxScore / Membres.
 * 3. Blocs DATA (VOXGAMING et réseaux) : même langage, pastille, 3 colonnes de chiffres, pied avec lien surligné.
 * 4. Ligne « Prix : dès X € » (téléphone et tablette).
 */

/* ---------- 1. grille commune (ordinateur) ---------- */
@media (min-width: 992px) {
    .vx-fiche-grid:has(> .vx-fiche-c1 > .vx-fiche-r3):has(> .vx-fiche-c2) {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        column-gap: 30px;
        align-items: stretch;
        padding: 1rem 15px 1.5rem;
    }
    .vx-fiche-grid:has(> .vx-fiche-c1 > .vx-fiche-r3):has(> .vx-fiche-c2) > .vx-fiche-c1,
    .vx-fiche-grid:has(> .vx-fiche-c1 > .vx-fiche-r3):has(> .vx-fiche-c2) > .vx-fiche-c2 { display: contents !important; } /* d-flex de Bootstrap est en !important */
    .vx-fiche-grid > .vx-fiche-c1 > * { grid-column: 1; grid-row: 1; }
    .vx-fiche-grid > .vx-fiche-c2 > * { grid-column: 2; grid-row: 1; }
    .vx-fiche-grid .vx-fiche-r2 { grid-row: 2 !important; }
    .vx-fiche-grid .vx-fiche-r3 { grid-row: 3 !important; margin-top: 1rem; }
    .vx-fiche-grid > .vx-fiche-bl, .vx-fiche-grid > .vx-fiche-br { padding: 0; margin: 1.5rem 0 0 !important; max-width: none; width: auto; }
    .vx-fiche-grid > .vx-fiche-bl { grid-column: 1; }
    .vx-fiche-grid > .vx-fiche-br { grid-column: 2; }
    /* ligne 3 de la colonne prix : la carte « Meilleur prix » et le classement s'empilent et remplissent la ligne */
    .vx-fiche-grid .vx-fiche-c2 > .vx-fiche-r3 > .vxPriceCard:first-child { margin-top: 0 !important; }
    .vx-fiche-grid .vx-fiche-c2 > .vx-fiche-r3 > .vx-rk-wrap:first-child { margin-top: 0; }
}
.vx-fiche-r3.vx-fiche-r3-side { display: flex; flex-direction: column; }
.vx-fiche-r3.vx-fiche-r3-side:empty { display: none; }

/* boutons juste sous la jaquette : pas de marge en plus au-dessus (le trait et son air suffisent) */
.vx-fiche-c1 .action-card { margin-top: 0 !important; }

/* onglet « Info. sup. » (dernier onglet de la carte du jeu) */
.vx-demat-facts { font-size: .9rem; line-height: 1.55; color: #212529; margin: 6px 0 4px; }
.vx-ms-panes > .tab-pane:not(.active) { display: none; }
.vx-ms-tabs { flex-wrap: nowrap; }
.vx-ms-tabs .nav-link { white-space: nowrap; }
#vx-ms-infos .vx-demat-facts { font-size: .95rem; line-height: 1.8; }
#vx-ms-infos .vx-infos-title { margin: 4px 0 14px; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #111827; }

/* ---------- 2. pastilles jumelles : VoxScore (fuchsia) et note des membres (jaune fluo), même largeur, même coupure ---------- */
.vx-notes { display: inline-grid; grid-template-columns: auto auto; row-gap: 6px; width: max-content; max-width: 100%; align-self: flex-start;
            margin: 8px 0; font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.vx-notes a { text-decoration: none; }
.vx-notes a:hover { text-decoration: none; filter: brightness(.95); }
.vx-notes-l { padding: .25rem .6rem .25rem .75rem; border-radius: 50rem 0 0 50rem; }
.vx-notes-r { padding: .25rem .75rem .25rem .6rem; border-radius: 0 50rem 50rem 0; }
.vx-notes-vs { background: #e6007e; color: #fff !important; }
.vx-notes-mb { background: #F2E70D; color: #000 !important; }
.vx-notes-g { background: #eef0f3; color: #212529 !important; }

/* ---------- 3. blocs DATA ---------- */
.vx-dt { display: flex; flex-direction: column; width: 100%; }
.vx-dt-card .card-body { display: flex; flex-direction: column; }
.vx-dt-card .vx-dt { flex: 1 1 auto; } /* carte étirée par la grille : pastille en haut, pied en bas */
.vx-dt-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 4px; }
.vx-dt-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 50rem; font-size: .8rem; font-weight: 900; letter-spacing: .06em;
              line-height: 1.5; padding: 6px 14px; white-space: nowrap; }
.vx-dt-pill-vox { background: #111; color: #F2E70D; }
/* précision (base de mesure) : pastille gris très clair, même gris que « 39 notes » */
.vx-dt-n { display: inline-block; background: #eef0f3; color: #495057; font-size: .75rem; font-weight: 600; line-height: 1.5; padding: .2rem .7rem;
           border-radius: 50rem; white-space: nowrap; }
.vx-dt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vx-dt-tiles.vx-dt-cols-1 { grid-template-columns: minmax(0, 1fr); }
.vx-dt-tiles.vx-dt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vx-dt-tile { padding: 14px 10px; text-align: center; border-right: 1px solid #e9ecef; }
.vx-dt-tile:last-child { border-right: 0; }
.vx-dt-big { font-size: 2.1rem; font-weight: 900; line-height: 1; white-space: nowrap; color: #111; }
.vx-dt-big small { font-size: 1.1rem; font-weight: 900; }
.vx-dt-big sup { font-size: .55em; }
.vx-dt-what { font-size: .86rem; font-weight: 800; margin-top: 4px; color: #111; }
.vx-dt-sub { font-size: .74rem; color: #495057; margin-top: 3px; }
/* trophées / succès : ligne pleine largeur sous les 3 colonnes, centrée */
.vx-dt-troph { text-align: center; padding: 18px 4px 16px; border-top: 1px solid #e9ecef; }
.vx-dt-troph-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 12px; font-size: 1.05rem; font-weight: 600; color: #212529; }
.vx-dt-troph-types i { font-size: 1.15rem; margin-right: 2px; }
.vx-dt-troph-types .t-platinum { color: #6e8fb5; } .vx-dt-troph-types .t-gold { color: #d4a017; }
.vx-dt-troph-types .t-silver { color: #a7a7ad; } .vx-dt-troph-types .t-bronze { color: #b0703c; }
/* trophées dans une colonne (quand il manque une colonne) : les types en petit, sur deux lignes au besoin */
.vx-dt-troph-types-sm { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin-top: 0; font-size: .74rem; font-weight: 600; }
.vx-dt-troph-types-sm i { font-size: .8rem; }
.vx-dt-troph-types-sm .t-platinum { color: #6e8fb5; } .vx-dt-troph-types-sm .t-gold { color: #d4a017; }
.vx-dt-troph-types-sm .t-silver { color: #a7a7ad; } .vx-dt-troph-types-sm .t-bronze { color: #b0703c; }
/* compilation (God of War Collection) : une ligne par jeu sous les colonnes */
.vx-dt-games { border-top: 1px solid #e9ecef; padding-top: 6px; }
.vx-dt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 12px; margin-top: auto; border-top: 1px solid #f1f3f5;
              font-size: .74rem; color: #495057; }
.vx-dt-foot > span { margin-left: auto; }
/* les liens des blocs DATA : même forme, alignés à gauche, surlignés (jaune fluo VoxGaming, couleur de la console pour un réseau) */
a.vx-dt-go { font-weight: 900; font-size: .85rem; color: #111; white-space: nowrap; padding: 0 2px; background: linear-gradient(transparent 60%, #F2E70D 60%); }
a.vx-dt-go:hover { color: #111; text-decoration: none; background: #F2E70D; }
a.vx-dt-go-psn { color: #003791; background: linear-gradient(transparent 60%, #c5d6f5 60%); }
a.vx-dt-go-psn:hover { color: #003791; background: #c5d6f5; }
a.vx-dt-go-xbox { color: #0e6b0e; background: linear-gradient(transparent 60%, #c8e6c9 60%); }
a.vx-dt-go-xbox:hover { color: #0e6b0e; background: #c8e6c9; }
a.vx-dt-go-steam { color: #1b2838; background: linear-gradient(transparent 60%, #c7d5e0 60%); }
a.vx-dt-go-steam:hover { color: #1b2838; background: #c7d5e0; }
/* sous le seuil : pas de chiffres, une invitation (pas de trou dans la carte) */
.vx-dt-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0 4px; }
.vx-dt-wait-txt { font-size: .9rem; color: #212529; }
.vx-dt-wait-txt b { font-weight: 900; }
.vx-dt-wait .btn { border-radius: 50rem; font-weight: 800; white-space: nowrap; background: #111; color: #F2E70D; padding: .35rem 1.1rem; }
.vx-dt-wait .btn:hover { background: #000; color: #F2E70D; }
/* les bandes réseau sorties de la carte : plus de trait ni de marge en haut */
.vx-fiche-bl .vx-psnrow, .vx-fiche-bl .vx-row, .vx-fiche-bl .vx-steamrow,
.vx-fiche-br.vx-psnrow, .vx-fiche-br.vx-row, .vx-fiche-br.vx-steamrow { border-top: 0; margin-top: 0; padding-top: 0; }
/* carte jumelle (« Et toi » ou progression) : le contenu réparti sur la hauteur, pour finir au même niveau que DATA */
.vx-fiche-br > .vx-pbox, .vx-fiche-br > .vx-box, .vx-fiche-br > .vx-sbox { justify-content: space-between; }
.vx-fiche-br > .vx-pcta, .vx-fiche-br > .vx-cta2, .vx-fiche-br > .vx-scta { padding-top: 22px; padding-bottom: 22px; }
.vx-fiche-br > .vx-pbox:not(.vx-pcta), .vx-fiche-br > .vx-box:not(.vx-cta2), .vx-fiche-br > .vx-sbox:not(.vx-scta) {
    background: #fff; border: 1px solid rgba(0, 0, 0, .125); border-radius: .25rem; padding: 1.25rem; }
@media (max-width: 767px) {
    .vx-dt-head { flex-wrap: wrap; }
    .vx-dt-big { font-size: 1.55rem; }
    .vx-dt-big small { font-size: .9rem; }
    .vx-dt-what { font-size: .76rem; }
    .vx-dt-sub { font-size: .68rem; }
    .vx-dt-tile { padding: 10px 4px; }
    .vx-dt-foot > span { margin-left: 0; }
    .vx-dt-troph-types { font-size: .88rem; gap: 4px 14px; }
    .vx-dt-troph-types i { font-size: .95rem; }
}

/* ---------- 4. ligne « Prix : dès X € » : téléphone et tablette, sous les boutons, descend au bloc prix ---------- */
.vx-price-line { display: none; }
@media (max-width: 991px) {
    .vx-price-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px;
                     background: #fffbe0; border: 1px solid #efe27a; font-size: .9rem; color: #212529; }
    .vx-price-line:hover { text-decoration: none; color: #212529; }
    .vx-price-line b { font-size: 1.1rem; font-weight: 800; }
    .vx-price-line span { white-space: nowrap; }
    .vx-price-line .vx-price-line-go { font-weight: 800; color: #1358c9; font-size: .85rem; }
}

/* onglet Communauté : « Qui va au bout ? » (la fiche contre les joueurs du réseau) */
#tabCommu .vxc-cmp { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; gap: 8px 12px; align-items: center; font-size: .85rem; max-width: 640px; margin-bottom: 6px; }
#tabCommu .vxc-cmp-track { height: 14px; background: #e9ecef; border-radius: 7px; overflow: hidden; }
#tabCommu .vxc-cmp-fill { height: 100%; border-radius: 7px; background: #868e96; }
#tabCommu .vxc-cmp-fill.is-vox { background: #111; }
#tabCommu .vxc-cmp-val { font-weight: 800; text-align: right; }
#tabCommu .vxc-cmp-who.is-vox { font-weight: 800; }
@media (max-width: 767px) { #tabCommu .vxc-cmp { grid-template-columns: 120px minmax(0, 1fr) 48px; } }
