/* ============================================================
   Guides de jeux hors mini-site (inc/jv-guide-kit.php) — préfixe jvg-.
   ============================================================ */

/* Fiche technique */
.jvg-specs { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.jvg-specs th, .jvg-specs td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-light); }
.jvg-specs tr:last-child th, .jvg-specs tr:last-child td { border-bottom: 0; }
.jvg-specs th { width: 34%; font-weight: 600; color: var(--ink-mid); background: var(--cream); }

/* Verdict d'un test */
.jvg-verdict { margin: 2em 0; padding: 22px 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.jvg-verdict__head { display: flex; gap: 20px; align-items: flex-start; }
.jvg-verdict__head h2 { margin: 0 0 6px; font-size: 22px; }
.jvg-verdict__head p { margin: 0 0 8px; }
.jvg-verdict__score { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ink); color: var(--white); }
.jvg-verdict__score b { font-size: 34px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.jvg-verdict__score span { font-size: 13px; opacity: .8; }
.jvg-verdict__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.jvg-verdict__cols h3 { margin: 0 0 6px; font-size: 15px; }
.jvg-verdict__cols ul { margin: 0; padding-left: 1.1em; }
.jvg-verdict__pros h3 { color: var(--green); }
.jvg-verdict__cons h3 { color: var(--red); }

/* Encadrés */
.jvg-callout { margin: 1.4em 0; padding: 14px 18px; border-radius: var(--r-sm); border-left: 4px solid var(--blue); background: var(--blue-bg); }
.jvg-callout--tip { border-left-color: var(--yellow-dark); background: var(--yellow-bg); }
.jvg-callout--warn { border-left-color: var(--red); background: var(--red-bg); }
.jvg-callout__title { margin: 0 0 4px; font-weight: 700; }
.jvg-callout p:last-child { margin-bottom: 0; }

/* Pokémon liés au Pokédex */
.jvg-mons__title { font-weight: 700; margin: 1.4em 0 .4em; }
.jvg-mons { list-style: none; margin: 1em 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.jvg-mons li { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); text-align: center; }
.jvg-mons a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; color: var(--ink); text-decoration: none; }
.jvg-mons li:hover { border-color: var(--ink); }
.jvg-mons img { width: 64px; height: 64px; image-rendering: pixelated; }
.jvg-mons__num { font-size: 11px; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.jvg-mons b { font-size: 14px; line-height: 1.2; }
.jvg-mons__tag { font-size: 11.5px; color: var(--ink-mid); }
.jvg-mons__types { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin-top: 3px; }
.jvg-mons__types .type-badge { padding: 2px 6px; font-size: 9px; }
.jvg-mons p { margin: 0; padding: 0 8px 10px; font-size: 12.5px; color: var(--ink-mid); line-height: 1.35; }
.jvg-mons--sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.jvg-mons--sm img { width: 48px; height: 48px; }

/* Galerie et captures */
.jvg-gallery { display: grid; gap: 12px; margin: 1.4em 0 1.8em; }
.jvg-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.jvg-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.jvg-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.jvg-shot { margin: 1.4em 0; }
.jvg-gallery .jvg-shot { margin: 0; }
.jvg-shot--half { max-width: 50%; }
.jvg-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--cream); border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; }
.jvg-zoom img { display: block; width: 100%; height: auto; max-width: 100%; }
.jvg-gallery .jvg-zoom { aspect-ratio: 4 / 3; }
.jvg-gallery .jvg-zoom img { height: 100%; object-fit: contain; }
.jvg-shot figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-light); line-height: 1.35; }
.jvg-lightbox { border: 0; padding: 0; max-width: min(96vw, 1400px); max-height: 94vh; background: transparent; }
.jvg-lightbox::backdrop { background: rgba(13, 13, 28, .86); }
.jvg-lightbox img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; border-radius: 8px; image-rendering: auto; }
.jvg-lightbox p { color: #fff; text-align: center; margin: 10px 0 0; font-size: 14px; }
.jvg-lightbox button { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; font-size: 18px; cursor: pointer; background: #fff; color: #0D0D1C; }

/* Archives de la rubrique */
.jvg-legacy { list-style: none; margin: 1em 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.jvg-legacy a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.jvg-legacy a:hover { border-color: var(--ink); }
.jvg-legacy__kind { grid-row: span 2; align-self: start; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-full); background: var(--cream); color: var(--ink-mid); }
.jvg-legacy__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.jvg-legacy time { font-size: 12px; color: var(--ink-light); }

/* Hub d'un guide générique : présentation, essentiel, archives (template-parts/guides/single-root.php) */
.jvg-hub-intro { max-width: 820px; font-size: 16.5px; line-height: 1.7; }
.jvg-hub-intro h2 { font-size: 22px; margin-top: 1.6em; }
.jvg-ess { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.jvg-ess a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--border); color: var(--ink); text-decoration: none; min-width: 0; }
.jvg-ess a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.jvg-ess b { font-size: 16px; line-height: 1.3; }
.jvg-ess span { font-size: 13.5px; color: var(--ink-mid); line-height: 1.45; }
.jvg-ess .jvg-ess__test { background: var(--ink); color: var(--white); border-color: var(--ink); }
.jvg-ess .jvg-ess__test span { color: rgba(255, 255, 255, .78); }
.jvg-ess__score { font-weight: 800; color: var(--yellow); }

/* Rubrique d'un jeu : sommaire du guide */
.jvg-cat-guide { margin: 0 0 28px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); }
.jvg-cat-guide h2 { margin: 0 0 4px; font-size: 20px; }
.jvg-cat-guide > p { margin: 0 0 14px; color: var(--ink-mid); font-size: 14px; }
.jvg-cat-guide__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 22px; }
.jvg-cat-guide h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-light); }
.jvg-cat-guide ul { list-style: none; margin: 0; padding: 0; }
.jvg-cat-guide li a { display: block; padding: 4px 0; font-size: 14.5px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.jvg-cat-guide li a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 720px) {
    .jvg-gallery--3, .jvg-gallery--4 { grid-template-columns: repeat(2, 1fr); }
    .jvg-verdict__cols { grid-template-columns: 1fr; }
    .jvg-verdict__head { flex-direction: column; }
    .jvg-shot--half { max-width: 100%; }
    .jvg-legacy { grid-template-columns: 1fr; }
    .jvg-specs th { width: 42%; }
}
