/* ============================================================
   PF2026 — Outils du JCC : deck builder, decks, collection (inc/jcc-tools.php)
   Identité du mini-site JCC (jcc.css) : bleu du dos des cartes, jaune du logo, rouge Poké Ball.
   Héros toujours bleu nuit ; le corps suit les jetons (clair ou sombre).
   ============================================================ */

.jt {
  --jt-surface: var(--white);
  --jt-fill: #EAF0FB;
  --jt-line: var(--jcc-line);
  --jt-ink: var(--jcc-ink);
  --jt-muted: var(--jcc-muted);
  --jt-title: var(--jcc-title);
  --jt-ok: #1F9D55; --jt-warn: #C77700; --jt-err: #D2331B; --jt-info: #2F74E0;
  --jt-p: #E3350D; --jt-t: #2F74E0; --jt-e: #F5B800;
  --jt-radius: 14px;
  --jt-card-r: 4.6% / 3.3%;
  background: var(--jcc-bg);
  color: var(--jt-ink);
  padding-bottom: 72px;
  overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jt { --jt-fill: rgba(255, 255, 255, .06); --jt-line: rgba(255, 255, 255, .13); --jt-ok: #4FD18B; --jt-warn: #FFB547; --jt-err: #FF7A66; --jt-info: #7FB0FF; }
}
:root[data-theme="dark"] .jt { --jt-fill: rgba(255, 255, 255, .06); --jt-line: rgba(255, 255, 255, .13); --jt-ok: #4FD18B; --jt-warn: #FFB547; --jt-err: #FF7A66; --jt-info: #7FB0FF; }

.jt .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jt :where(h1, h2, h3) { text-wrap: balance; }
.jt a { text-underline-offset: 3px; }
.jt [hidden] { display: none !important; }

/* ---------- Héros ---------- */
.jt-hero {
  position: relative; overflow: hidden; color: #fff; padding: 34px 0 38px;
  background:
    radial-gradient(circle at 88% -20%, rgba(255, 203, 5, .22), transparent 42%),
    radial-gradient(circle at 105% 110%, rgba(227, 53, 13, .25), transparent 40%),
    linear-gradient(135deg, var(--jcc-night) 0%, var(--jcc-deep) 55%, var(--jcc-blue) 100%);
}
.jt-hero::before { /* motif du dos des cartes : anneaux concentriques */
  content: ""; position: absolute; right: -140px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  border-radius: 50%; pointer-events: none; opacity: .14;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(255, 255, 255, .55) 35px 37px);
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%);
}
.jt-hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.jt-hero__text { flex: 1 1 520px; min-width: 0; max-width: 720px; }
.jt-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--jcc-yellow); }
.jt-eyebrow--ink { color: var(--jcc-red); }
.jt-hero__title { margin: 0; font-family: var(--pfb-font-titre); font-weight: 900; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.jt-hero__title span { color: var(--jcc-yellow); }
.jt-hero__title--deck { font-size: clamp(26px, 4vw, 42px); }
.jt-hero__lead { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.jt-hero__lead b { color: #fff; }
.jt-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jt-hero__facts li { display: grid; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.jt-hero__facts b { font-family: var(--pfb-font-titre); font-size: 22px; color: var(--jcc-yellow); font-variant-numeric: tabular-nums; }
.jt-hero__facts span { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.jt-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.jt-hero--builder { padding-bottom: 30px; }

/* ---------- Boutons, champs ---------- */
.jt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--jt-line); background: var(--jt-surface); color: var(--jt-ink);
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.jt-btn:hover { border-color: var(--jcc-blue-2); }
.jt-btn:active { transform: translateY(1px); }
.jt-btn:focus-visible, .jt :focus-visible { outline: 3px solid var(--jcc-yellow); outline-offset: 2px; }
.jt-btn[disabled] { opacity: .55; cursor: progress; }
.jt-btn--primary { background: var(--jcc-yellow); border-color: var(--jcc-yellow); color: #101631; }
.jt-btn--primary:hover { background: var(--jcc-yellow-2); border-color: var(--jcc-yellow-2); }
.jt-btn--lg { min-height: 48px; padding: 10px 22px; font-size: 15.5px; }
.jt-btn--sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.jt-btn--ghost { background: transparent; }
.jt-btn--onDark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.jt-btn--onDark:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.jt-btn--onDark.is-on { background: var(--jcc-red); border-color: var(--jcc-red); }
.jt-btn--danger { color: var(--jt-err); }
.jt-btn--icon { width: 40px; padding: 0; }
.jt-btn svg, .jt-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.jt-search { position: relative; display: flex; align-items: center; }
.jt-search svg { position: absolute; left: 14px; color: var(--jt-muted); pointer-events: none; }
.jt-search input { width: 100%; min-height: 50px; padding: 10px 46px 10px 44px; border-radius: 14px; border: 2px solid var(--jt-line); background: var(--jt-surface); color: var(--jt-ink); font: inherit; font-size: 16px; }
.jt-search input:focus { border-color: var(--jcc-blue-2); outline: none; box-shadow: 0 0 0 4px rgba(47, 116, 224, .18); }
.jt-search kbd { position: absolute; right: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--jt-line); font-size: 12px; color: var(--jt-muted); background: var(--jt-fill); }
.jt-search--sm input { min-height: 42px; border-width: 1px; font-size: 15px; padding-right: 14px; border-radius: 999px; }

.jt-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--jt-fill); border: 1px solid var(--jt-line); }
.jt-seg button { min-height: 32px; padding: 4px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--jt-muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.jt-seg button[aria-pressed="true"] { background: var(--jcc-deep); color: #fff; }
.jt-select { min-width: 0; }
.jt-select select { min-height: 40px; max-width: 100%; text-overflow: ellipsis; padding: 6px 34px 6px 14px; border-radius: 999px; border: 1px solid var(--jt-line); background: var(--jt-surface); color: var(--jt-ink); font: inherit; font-size: 14px; }
.jt-select--wide select { max-width: 260px; }
.jt-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.jt-toggle input { width: 18px; height: 18px; accent-color: var(--jcc-blue); }

.jt-qty { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--jcc-yellow); color: #101631; font-size: 13.5px; font-weight: 900; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; }
.jt-qty:empty { display: none; }
.jt-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .6), transparent 50%), var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); vertical-align: -1px; margin-right: 6px; }
.jt-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; }
.jt-small { font-size: 13px; line-height: 1.5; color: var(--jt-muted); }
.jt-alert { padding: 14px 18px; border-radius: 12px; background: var(--jt-surface); border: 1px solid var(--jt-line); }
.jt-link { font-weight: 800; color: var(--jcc-blue-2); text-decoration: none; }

/* ============================================================
   DECK BUILDER
   ============================================================ */
.jt-bld { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 22px; align-items: start; margin-top: -18px; position: relative; }
.jt-bld__switch { display: none; }

.jt-browser { min-width: 0; padding: 18px; border-radius: 20px; background: var(--jt-surface); border: 1px solid var(--jt-line); box-shadow: var(--jcc-shadow-sm); }
.jt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 6px; }
.jt-results__meta { margin: 10px 2px 12px; font-size: 13.5px; color: var(--jt-muted); }
.jt-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 12px; }
.jt-more { display: flex; margin: 20px auto 4px; }

.jt-tile { position: relative; min-width: 0; }
.jt-tile__add { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--jt-card-r); background: var(--jt-fill); cursor: pointer; aspect-ratio: 215 / 300; transition: transform .15s ease, box-shadow .15s ease; }
.jt-tile__add img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--jt-card-r); }
.jt-tile__add:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(14, 42, 107, .22); }
.jt-tile.is-in .jt-tile__add { box-shadow: 0 0 0 3px var(--jcc-yellow), 0 8px 18px rgba(14, 42, 107, .2); }
.jt-tile.is-pop .jt-tile__add { animation: jt-pop .32s ease; }
@keyframes jt-pop { 40% { transform: scale(.94); } 100% { transform: scale(1); } }
.jt-tile__ph { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--jt-muted); }
.jt-tile__cap { display: grid; gap: 1px; padding: 6px 2px 0; }
.jt-tile__name { font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-tile__ref { font-size: 11.5px; color: var(--jt-muted); font-variant-numeric: tabular-nums; }
.jt-tile__ref i { font-style: normal; color: var(--jt-warn); font-weight: 700; }
.jt-tile__art { position: relative; }
.jt-tile__info { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(10, 26, 69, .82); color: #fff; font: 800 14px/1 Georgia, serif; font-style: italic; cursor: pointer; opacity: 0; transition: opacity .15s; }
.jt-tile:hover .jt-tile__info, .jt-tile__info:focus-visible { opacity: 1; }
@media (hover: none) { .jt-tile__info { opacity: 1; } }

/* Panneau du deck */
.jt-deck { position: sticky; top: calc(var(--pfb-tetiere-h, 64px) + 16px); min-width: 0; }
.jt-deck__box { display: flex; flex-direction: column; max-height: calc(100vh - var(--pfb-tetiere-h, 64px) - 70px); border-radius: 20px; background: var(--jt-surface); border: 1px solid var(--jt-line); box-shadow: var(--jcc-shadow); overflow: hidden; }
.jt-deck__head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 12px; background: linear-gradient(135deg, var(--jcc-night), var(--jcc-deep)); color: #fff; }
.jt-meter { --fill: 0; position: relative; flex: none; width: 64px; height: 64px; }
.jt-meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jt-meter circle { fill: none; stroke-width: 5; }
.jt-meter__track { stroke: rgba(255, 255, 255, .16); }
.jt-meter__bar { stroke: var(--jcc-yellow); stroke-linecap: round; stroke-dasharray: var(--fill) 60; transition: stroke-dasharray .3s ease; }
.jt-meter.is-full .jt-meter__bar { stroke: #4FD18B; }
.jt-meter.is-over .jt-meter__bar { stroke: #FF7A66; }
.jt-meter span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.jt-meter b { font-family: var(--pfb-font-titre); font-size: 19px; font-variant-numeric: tabular-nums; }
.jt-meter small { font-size: 10.5px; opacity: .75; }
.jt-deck__id { flex: 1; min-width: 0; }
.jt-deck__name { width: 100%; padding: 4px 0; border: 0; border-bottom: 1px dashed rgba(255, 255, 255, .35); background: transparent; color: #fff; font-family: var(--pfb-font-titre); font-size: 18px; font-weight: 800; }
.jt-deck__name::placeholder { color: rgba(255, 255, 255, .55); }
.jt-deck__name:focus { outline: none; border-bottom-color: var(--jcc-yellow); }
.jt-deck__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.jt-deck__sub select { min-height: 30px; padding: 2px 26px 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13px; font-weight: 700; }
.jt-deck__sub select option { color: #101631; }
.jt-state { font-size: 12px; color: rgba(255, 255, 255, .72); }
.jt-state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.jt-state.is-saved::before { background: #4FD18B; }
.jt-state.is-dirty::before { background: var(--jcc-yellow); }
.jt-deck__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--jt-line); }
.jt-deck__actions .jt-btn { min-height: 36px; padding: 6px 13px; font-size: 13.5px; }
.jt-deck__actions .jt-btn--icon { width: 36px; margin-left: auto; }

.jt-checks { display: grid; gap: 6px; padding: 0 16px; }
.jt-checks:not(:empty) { padding-top: 12px; }
.jt-check { margin: 0; padding: 8px 12px 8px 34px; border-radius: 10px; font-size: 13px; line-height: 1.45; position: relative; background: var(--jt-fill); }
.jt-check::before { position: absolute; left: 11px; top: 8px; font-weight: 900; }
.jt-check--ok { color: var(--jt-ok); } .jt-check--ok::before { content: "✓"; }
.jt-check--err { color: var(--jt-err); } .jt-check--err::before { content: "!"; left: 14px; }
.jt-check--warn { color: var(--jt-warn); } .jt-check--warn::before { content: "▲"; font-size: 10px; top: 10px; }
.jt-check--info { color: var(--jt-info); } .jt-check--info::before { content: "+"; left: 12px; }

.jt-tabs { display: flex; gap: 4px; padding: 12px 16px 0; border-bottom: 1px solid var(--jt-line); }
.jt-tabs button { padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--jt-muted); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.jt-tabs button[aria-selected="true"] { color: var(--jt-ink); border-bottom-color: var(--jcc-red); }
.jt-deck__body { flex: 1; min-height: 120px; overflow-y: auto; padding: 6px 16px 16px; overscroll-behavior: contain; }
.jt-deck__empty { margin: 0; padding: 14px 16px 20px; font-size: 14px; color: var(--jt-muted); text-align: center; }
.jt-deck__links { margin: 12px 4px 0; font-size: 13px; text-align: center; color: var(--jt-muted); }
.jt-deck__links a { color: inherit; font-weight: 700; }

.jt-grp h3, .jt-vis h3, .jt-deck__body h4 { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--jt-muted); }
.jt-grp h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--g); }
.jt-grp h3 small { margin-left: auto; font-size: 13px; letter-spacing: 0; color: var(--jt-ink); }
.jt-grp--p { --g: var(--jt-p); } .jt-grp--t { --g: var(--jt-t); } .jt-grp--e { --g: var(--jt-e); }
.jt-grp ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.jt-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px; border-radius: 10px; }
.jt-row:hover { background: var(--jt-fill); }
.jt-row__thumb { width: 48px; height: 36px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--jt-fill); cursor: pointer; }
.jt-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.5); transform-origin: 50% 18%; }
.jt-row__name { display: grid; min-width: 0; }
.jt-row__name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-row__name small { font-size: 11.5px; color: var(--jt-muted); }
.jt-row__name em { font-style: normal; color: var(--jt-warn); font-weight: 700; }
.jt-row.is-illegal .jt-row__thumb { box-shadow: 0 0 0 2px var(--jt-warn); }
.jt-step { display: inline-flex; align-items: center; border-radius: 999px; background: var(--jt-fill); border: 1px solid var(--jt-line); }
.jt-step button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--jt-ink); font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.jt-step button:hover { background: var(--jt-line); }
.jt-step output { min-width: 18px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.jt-step--lg button { width: 40px; height: 40px; font-size: 22px; }
.jt-step--lg output { min-width: 28px; font-size: 18px; }

.jt-vis__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.jt-vis__card { position: relative; padding: 0; border: 0; border-radius: var(--jt-card-r); background: var(--jt-fill); aspect-ratio: 215 / 300; cursor: pointer; }
.jt-vis__card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--jt-card-r); }
.jt-vis__card .jt-qty { min-width: 26px; height: 26px; font-size: 12.5px; top: 4px; right: 4px; }

.jt-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.jt-statcard { padding: 10px; border-radius: 12px; background: var(--jt-fill); text-align: center; }
.jt-statcard span { display: block; font-size: 12px; color: var(--jt-muted); font-weight: 700; }
.jt-statcard b { font-family: var(--pfb-font-titre); font-size: 22px; font-variant-numeric: tabular-nums; }
.jt-splitbar { display: flex; gap: 2px; height: 10px; margin: 10px 0 4px; border-radius: 999px; overflow: hidden; background: var(--jt-fill); }
.jt-splitbar i { min-width: 0; }
.jt-split--p { --g: var(--jt-p); } .jt-split--t { --g: var(--jt-t); } .jt-split--e { --g: var(--jt-e); }
.jt-splitbar i { background: var(--g); }
.jt-gauge { margin: 16px 0 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--jt-line); }
.jt-gauge__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; }
.jt-gauge__head b { font-family: var(--pfb-font-titre); font-size: 20px; color: var(--jt-ok); }
.jt-gauge__track { height: 8px; margin: 8px 0; border-radius: 999px; background: var(--jt-fill); overflow: hidden; }
.jt-gauge__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jt-warn), var(--jt-ok)); }
.jt-gauge .jt-small { margin: 0; }
.jt-bars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jt-bars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 13px; }
.jt-bars__lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-bars__track { height: 8px; border-radius: 999px; background: var(--jt-fill); overflow: hidden; }
.jt-bars__track i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.jt-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.jt-ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.jt-ptable th { text-align: left; font-size: 11.5px; color: var(--jt-muted); font-weight: 800; padding: 4px 0; }
.jt-ptable td { padding: 6px 0; border-top: 1px solid var(--jt-line); font-variant-numeric: tabular-nums; }
.jt-ptable td + td, .jt-ptable th + th { text-align: right; }

/* Dialogues */
.jt-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 0; border: 0; border-radius: 22px; background: var(--jt-surface, #fff); color: var(--jt-ink, #101631); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.jt-dialog::backdrop { background: rgba(10, 26, 69, .55); backdrop-filter: blur(3px); }
.jt-dialog__box { display: grid; gap: 12px; padding: 24px; position: relative; }
.jt-dialog h2 { margin: 0; font-family: var(--pfb-font-titre); font-size: 22px; }
.jt-dialog p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--jt-muted); }
.jt-dialog textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--jt-line); background: var(--jt-fill); color: inherit; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.jt-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.jt-dialog__msg { padding: 10px 12px; border-radius: 10px; background: var(--jt-fill); color: var(--jt-ink) !important; font-size: 13.5px !important; }
.jt-dialog__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--jt-fill); color: inherit; font-size: 22px; cursor: pointer; }
.jt-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.jt-field small { font-weight: 500; color: var(--jt-muted); }
.jt-radios { margin: 0; padding: 0; border: 0; }
.jt-radios legend { margin-bottom: 6px; }
.jt-radios label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--jt-line); margin-bottom: 6px; font-weight: 500; cursor: pointer; }
.jt-radios label:has(input:checked) { border-color: var(--jcc-blue-2); background: var(--jt-fill); }
.jt-radios input { margin-top: 3px; accent-color: var(--jcc-blue); }
.jt-radios b { display: block; }
.jt-dialog--card { width: min(760px, calc(100vw - 32px)); }
.jt-cd { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; padding: 24px; position: relative; }
.jt-cd__img img { width: 100%; border-radius: var(--jt-card-r); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.jt-cd__info { display: grid; align-content: start; gap: 10px; }
.jt-cd__info h2 { margin: 0; font-family: var(--pfb-font-titre); font-size: 24px; padding-right: 36px; }
.jt-cd__facts { margin: 0; font-weight: 700; color: var(--jt-ink) !important; }
.jt-cd__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--jt-fill); font-weight: 800; }
.jt-cd__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Notifications */
.jt-toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 10000; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.jt-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #101631; color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); pointer-events: auto; animation: jt-in .25s ease; transition: opacity .35s, transform .35s; }
.jt-toast.is-out { opacity: 0; transform: translateY(8px); }
.jt-toast::before { content: "•"; color: var(--jcc-yellow); font-size: 22px; line-height: 0; }
.jt-toast--ok::before { content: "✓"; color: #4FD18B; font-size: 16px; }
.jt-toast--warn::before { content: "!"; color: var(--jcc-yellow); font-size: 18px; font-weight: 900; }
.jt-toast--err::before { content: "×"; color: #FF7A66; font-size: 20px; }
.jt-toast__act { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--jcc-yellow); color: #101631; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
@keyframes jt-in { from { opacity: 0; transform: translateY(10px); } }

/* Guide en bas de page */
.jt-guide { margin-top: 56px; }
.jt-guide > h2 { margin: 0 0 16px; font-family: var(--pfb-font-titre); font-size: clamp(22px, 3vw, 30px); color: var(--jt-title); }
.jt-guide__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.jt-guide__grid article { padding: 20px; border-radius: 18px; background: var(--jt-surface); border: 1px solid var(--jt-line); border-top: 4px solid var(--jcc-yellow); }
.jt-guide__grid article:nth-child(2) { border-top-color: var(--jcc-blue-2); }
.jt-guide__grid article:nth-child(3) { border-top-color: var(--jcc-red); }
.jt-guide__grid h3 { margin: 0 0 8px; font-size: 17px; }
.jt-guide__grid p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--jt-muted); }
.jt-guide__more { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--jt-muted); }
.jt-guide__more a { font-weight: 700; color: var(--jt-ink); }

/* ============================================================
   COLLECTION
   ============================================================ */
.jt-dash { flex: 0 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jt-dash__tile { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.jt-dash__tile b { display: block; font-family: var(--pfb-font-titre); font-size: 26px; color: var(--jcc-yellow); font-variant-numeric: tabular-nums; }
.jt-dash__tile span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.jt-dash__limit { grid-column: 1 / -1; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.jt-dash__limit a { color: var(--jcc-yellow); font-weight: 700; }
.jt-limit__bar { display: block; height: 6px; margin-bottom: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.jt-limit__bar i { display: block; height: 100%; background: var(--jcc-yellow); border-radius: inherit; }

.jt-col { margin-top: 28px; }
.jt-guest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding: 20px 24px; border-radius: 20px; background: var(--jt-surface); border: 1px solid var(--jt-line); border-left: 6px solid var(--jcc-yellow); }
.jt-guest h2 { margin: 0 0 4px; font-size: 19px; }
.jt-guest p { margin: 0; max-width: 640px; color: var(--jt-muted); line-height: 1.55; }
.jt-col__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jt-col__bar h2, .jt-sec__head h2 { margin: 0; font-family: var(--pfb-font-titre); font-size: clamp(22px, 3vw, 30px); color: var(--jt-title); }
.jt-col__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.jt-quick { position: relative; display: grid; grid-template-columns: auto minmax(0, 420px); align-items: center; gap: 12px; margin-bottom: 26px; padding: 14px 16px; border-radius: 16px; background: var(--jt-surface); border: 1px dashed var(--jt-line); }
.jt-quick > label { font-weight: 800; font-size: 14px; }
.jt-quick__list { grid-column: 1 / -1; display: grid; gap: 4px; }
.jt-qrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; }
.jt-qrow:hover { background: var(--jt-fill); }
.jt-qrow img { width: 44px; border-radius: 4px; }
.jt-qrow__name { display: grid; min-width: 0; }
.jt-qrow__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-qrow__name small { color: var(--jt-muted); font-size: 12.5px; }
.jt-qrow__q { font-weight: 900; color: var(--jt-ok); }

.jt-serie { margin-bottom: 30px; }
.jt-serie__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--jt-ink); font-family: var(--pfb-font-titre); font-size: 19px; color: var(--jt-title); }
.jt-serie__title small { font-family: var(--pfb-font-texte); font-size: 13px; color: var(--jt-muted); }
.jt-exts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.jt-ext { position: relative; display: grid; gap: 4px; padding: 0 0 14px; border-radius: 16px; background: var(--jt-surface); border: 1px solid var(--jt-line); color: var(--jt-ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.jt-ext:hover { transform: translateY(-2px); box-shadow: var(--jcc-shadow); }
.jt-ext__logo { display: grid; place-items: center; height: 92px; padding: 12px 16px; margin-bottom: 6px; background: radial-gradient(ellipse at 50% 120%, rgba(47, 116, 224, .5), transparent 70%), linear-gradient(160deg, #13235A, #0A1A45); }
.jt-ext__logo img { max-width: 100%; max-height: 68px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.jt-ext__name { padding: 0 14px; font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.jt-ext__meta { padding: 0 14px; font-size: 12px; color: var(--jt-muted); }
.jt-code { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--jt-fill); font-weight: 800; font-size: 11px; letter-spacing: .03em; }
.jt-ext__bar { display: block; height: 6px; margin: 6px 14px 0; border-radius: 999px; background: var(--jt-fill); overflow: hidden; }
.jt-ext__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jcc-yellow), var(--jcc-yellow-2)); transition: width .4s ease; }
.jt-ext__prog { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--jcc-yellow); color: #101631; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.jt-ext__prog:empty { display: none; }
.jt-ext.is-started { border-color: var(--jcc-yellow-2); }
.jt-ext.is-done .jt-ext__bar i { background: linear-gradient(90deg, #4FD18B, #1F9D55); }
.jt-ext.is-done .jt-ext__prog { background: #1F9D55; color: #fff; }

/* Classeur */
.jt-binder { scroll-margin-top: calc(var(--pfb-tetiere-h, 64px) + 20px); }
.jt-back { display: inline-block; margin-bottom: 12px; font-weight: 800; color: var(--jcc-blue-2); text-decoration: none; }
.jt-binder__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 0, rgba(255, 203, 5, .2), transparent 45%), linear-gradient(135deg, var(--jcc-night), var(--jcc-deep)); }
.jt-binder__head .jt-back { flex-basis: 100%; margin: 0; color: var(--jcc-yellow); }
.jt-binder__id { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1; }
.jt-binder__logo { width: 150px; max-height: 70px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); }
.jt-binder__id h2 { margin: 0; font-family: var(--pfb-font-titre); font-size: clamp(20px, 3vw, 28px); color: #fff; }
.jt-binder__meta { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.jt-ring { --p: 0; position: relative; width: 84px; height: 84px; flex: none; }
.jt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jt-ring circle { fill: none; stroke-width: 5; }
.jt-ring__track { stroke: rgba(255, 255, 255, .16); }
.jt-ring__bar { stroke: var(--jcc-yellow); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray .4s; }
.jt-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.jt-ring b { font-family: var(--pfb-font-titre); font-size: 22px; }
.jt-ring small { font-size: 11px; opacity: .8; }
.jt-binder__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 6px; }
.jt-binder__tools .jt-search { flex: 1 1 200px; max-width: 280px; }
.jt-binder__hint { margin: 6px 2px 16px; font-size: 13.5px; color: var(--jt-muted); }
.jt-binder__none { padding: 40px 20px; text-align: center; color: var(--jt-muted); font-size: 15px; }

.jt-binder__pages.is-binder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 22px; }
.jt-page { position: relative; padding: 18px 16px 16px 40px; border-radius: 12px 18px 18px 12px; background: linear-gradient(90deg, rgba(14, 42, 107, .1), transparent 30px), var(--jt-surface); border: 1px solid var(--jt-line); box-shadow: var(--jcc-shadow-sm); }
.jt-page::before { /* anneaux du classeur */
  content: ""; position: absolute; left: 12px; top: 14%; bottom: 14%; width: 12px;
  background: radial-gradient(circle at 6px 6px, var(--jcc-bg) 0 5px, var(--jt-line) 5.5px 6px, transparent 6.5px) 0 0 / 12px 33.3% repeat-y;
}
.jt-page__n { position: absolute; right: 16px; top: -10px; padding: 2px 10px; border-radius: 999px; background: var(--jcc-deep); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.jt-page__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.is-grid .jt-page__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.jt-pocket { position: relative; min-width: 0; }
.jt-pocket__card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--jt-card-r); background: var(--jt-fill); aspect-ratio: 215 / 300; cursor: pointer; overflow: hidden; }
.jt-pocket__card::after { /* reflet de la pochette plastique */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, .12) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.jt-pocket__card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .25s, opacity .25s, transform .2s; }
.jt-pocket.is-missing .jt-pocket__card img { filter: grayscale(1) contrast(.85); opacity: .32; }
.jt-pocket.is-missing .jt-pocket__card { background: repeating-linear-gradient(135deg, var(--jt-fill) 0 8px, transparent 8px 16px), var(--jt-fill); outline: 2px dashed var(--jt-line); outline-offset: -2px; }
.jt-pocket.is-missing:hover .jt-pocket__card img { opacity: .7; filter: grayscale(.3); }
.jt-pocket.is-owned .jt-pocket__card { box-shadow: 0 6px 16px rgba(14, 42, 107, .22); }
.jt-pocket.is-pop .jt-pocket__card { animation: jt-pop .32s ease; }
.jt-pocket__num { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(10, 26, 69, .78); color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jt-pocket.is-owned .jt-pocket__num { display: none; }
.jt-pocket__bar { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.jt-pocket__bar button, .jt-pocket__bar a { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--jt-line); background: var(--jt-surface); color: var(--jt-muted); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.jt-pocket__bar button:disabled { opacity: .35; cursor: default; }
.jt-pocket__bar [data-wish][aria-pressed="true"] { color: #fff; background: var(--jcc-red); border-color: var(--jcc-red); }
.jt-pocket.is-wish .jt-pocket__card { outline: 2px solid var(--jcc-red); outline-offset: -2px; }

/* ============================================================
   DECKS : galerie, mes decks, deck partagé
   ============================================================ */
.jt-gal, .jt-mine { margin-top: 28px; }
.jt-gal__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px; border-radius: 18px; background: var(--jt-surface); border: 1px solid var(--jt-line); }
.jt-gal__filters .jt-search { flex: 1 1 220px; }
.jt-gal__count, .jt-gal__note, .jt-mine__meta { margin: 0 0 14px; font-size: 14px; color: var(--jt-muted); }
.jt-gal__note b { color: var(--jt-ink); }
.jt-gal__src { margin: 12px 0 0; font-size: 13px; color: var(--jt-muted); }
.jt-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.jt-dcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; background: var(--jt-surface); border: 1px solid var(--jt-line); color: var(--jt-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.jt-dcard:hover { transform: translateY(-2px); box-shadow: var(--jcc-shadow); }
.jt-dcard__cover { display: block; aspect-ratio: 215 / 300; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, var(--jcc-deep), var(--jcc-night)); box-shadow: 0 6px 16px rgba(14, 42, 107, .25); transform: rotate(-3deg); }
.jt-dcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.jt-dcard__cover--draft { display: grid; place-items: center; font-size: 34px; color: var(--jcc-yellow); transform: none; }
.jt-dcard__body { display: grid; align-content: start; gap: 4px; min-width: 0; }
.jt-dcard__fmt { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--jcc-red); }
.jt-dcard__name { font-family: var(--pfb-font-titre); font-size: 17px; line-height: 1.25; color: var(--jt-ink); text-decoration: none; overflow-wrap: anywhere; }
.jt-dcard__by { font-size: 13px; color: var(--jt-muted); }
.jt-dcard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--jt-muted); font-weight: 700; }
.jt-dcard__types .jcc-orb { width: 22px; height: 22px; font-size: 11px; margin-right: 2px; }
.jt-dcard__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jt-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--jt-fill); color: var(--jt-warn); font-weight: 800; font-variant-numeric: tabular-nums; }
.jt-badge--ok { color: var(--jt-ok); }
.jt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 0; }
.jt-pager a, .jt-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--jt-line); background: var(--jt-surface); color: var(--jt-ink); font-weight: 800; text-decoration: none; }
.jt-pager span[aria-current] { background: var(--jcc-deep); border-color: var(--jcc-deep); color: #fff; }

.jt-emptybox { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 46px 20px; border-radius: 24px; background: var(--jt-surface); border: 1px dashed var(--jt-line); text-align: center; }
.jt-emptybox h2 { margin: 6px 0 0; font-family: var(--pfb-font-titre); font-size: 22px; color: var(--jt-title); }
.jt-emptybox p { margin: 0 0 8px; max-width: 520px; color: var(--jt-muted); line-height: 1.55; }
.jt-emptybox__fan { position: relative; width: 150px; height: 104px; }
.jt-emptybox__fan span { position: absolute; left: 50%; bottom: 0; width: 64px; height: 90px; margin-left: -32px; border-radius: 6px; border: 3px solid #fff; transform-origin: 50% 120%;
  background: radial-gradient(circle at 50% 50%, var(--jcc-yellow) 0 9px, var(--jcc-deep) 10px 14px, transparent 15px), linear-gradient(160deg, var(--jcc-blue-2), var(--jcc-night)); box-shadow: 0 8px 18px rgba(14, 42, 107, .3); }
.jt-emptybox__fan span:nth-child(1) { transform: rotate(-16deg); }
.jt-emptybox__fan span:nth-child(3) { transform: rotate(16deg); }

.jt-meta { margin-top: 44px; }
.jt-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.jt-metas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.jt-mcard { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: 18px; background: var(--jt-surface); border: 1px solid var(--jt-line); }
.jt-mcard__rank { position: absolute; top: 12px; right: 14px; font-family: var(--pfb-font-titre); font-weight: 900; font-size: 18px; color: var(--jt-muted); }
.jt-mcard__mons { display: flex; margin-bottom: 4px; }
.jt-mcard__mons img { width: 60px; height: 60px; object-fit: contain; }
.jt-mcard__mons img + img { margin-left: -16px; }
.jt-mcard h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.jt-mcard p { margin: 0 0 6px; font-size: 13px; color: var(--jt-muted); }
.jt-mcard .jt-btn { justify-self: start; }

.jt-fan { position: relative; flex: 0 0 300px; height: 250px; }
.jt-fan img { position: absolute; bottom: 0; left: 50%; width: 150px; margin-left: -75px; border-radius: 4.6% / 3.3%; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transform-origin: 50% 110%; transform: rotate(calc((var(--i) - 1) * 13deg)) translateY(calc(var(--i) * 0px)); }
.jt-fan img:nth-child(2) { z-index: 2; }

.jt-dk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 28px; }
.jt-dk__desc { margin-bottom: 22px; padding: 18px 20px; border-radius: 18px; background: var(--jt-surface); border: 1px solid var(--jt-line); line-height: 1.65; }
.jt-dk__desc p { margin: 0 0 10px; } .jt-dk__desc p:last-child { margin: 0; }
.jt-dk__sec { margin-bottom: 26px; }
.jt-dk__sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--jt-ink); font-family: var(--pfb-font-titre); font-size: 20px; color: var(--jt-title); }
.jt-dk__sec h2 small { font-family: var(--pfb-font-texte); font-size: 14px; color: var(--jt-muted); }
.jt-dk__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.jt-dkc { position: relative; display: grid; gap: 6px; color: var(--jt-ink); text-decoration: none; }
.jt-dkc img, .jt-dkc__ph { width: 100%; aspect-ratio: 215 / 300; border-radius: var(--jt-card-r); object-fit: cover; background: var(--jt-fill); box-shadow: 0 6px 16px rgba(14, 42, 107, .18); transition: transform .15s; }
.jt-dkc__ph { display: grid; place-items: center; padding: 8px; text-align: center; font-size: 13px; font-weight: 700; }
a.jt-dkc:hover img { transform: translateY(-3px); }
.jt-dkc__name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.jt-dkc__name small { display: block; font-weight: 500; color: var(--jt-muted); font-size: 11.5px; }
.jt-dk__side { position: sticky; top: calc(var(--pfb-tetiere-h, 64px) + 16px); display: grid; gap: 14px; }
.jt-panel { padding: 18px; border-radius: 18px; background: var(--jt-surface); border: 1px solid var(--jt-line); }
.jt-panel h2 { margin: 0 0 10px; font-size: 16px; }
.jt-split { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.jt-split li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--g); }
.jt-stat { margin: 10px 0; font-size: 14px; line-height: 1.55; }
.jt-ok { margin: 0; color: var(--jt-ok); font-weight: 700; font-size: 14px; }
.jt-checklist { margin: 0; padding-left: 18px; color: var(--jt-err); font-size: 14px; }
.jt-listtext { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--jt-line); background: var(--jt-fill); color: var(--jt-ink); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.jt-dk__more { margin: 0; font-size: 14px; }
.jt-dk__more a { font-weight: 700; color: var(--jt-ink); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 1100px) {
  .jt-bld { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
}
@media (max-width: 900px) {
  .jt-hero { padding: 26px 0 30px; }
  .jt-hero__facts li { padding: 8px 12px; }
  .jt-hero__facts b { font-size: 18px; }
  .jt-bld { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .jt-bld__switch { position: sticky; top: calc(var(--pfb-tetiere-h, 64px) + 6px); z-index: 20; display: flex; gap: 4px; margin: 14px 0 0; padding: 4px; border-radius: 999px; background: var(--jcc-night); box-shadow: 0 8px 22px rgba(10, 26, 69, .3); }
  .jt-bld__switch button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .78); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
  .jt-bld__switch button[aria-selected="true"] { background: var(--jcc-yellow); color: #101631; }
  .jt-bld__switch b { font-variant-numeric: tabular-nums; }
  .jt-bld [data-jt-pane="deck"] { display: none; }
  .jt-bld.is-deck [data-jt-pane="deck"] { display: block; }
  .jt-bld.is-deck [data-jt-pane="cards"] { display: none; }
  .jt-deck { position: static; }
  .jt-deck__box { max-height: none; }
  .jt-deck__body { overflow: visible; }
  .jt-browser { padding: 14px; border-radius: 16px; }
  .jt-results { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 8px; }
  .jt-filters > * { min-width: 0; max-width: 100%; }
  .jt-filters .jt-select { flex: 1 1 160px; }
  .jt-filters .jt-select select, .jt-select--wide select { width: 100%; max-width: 100%; }
  .jt-filters .jt-seg { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .jt-filters .jt-seg button { flex: 1 0 auto; padding: 4px 10px; }
  .jt-deck__actions .jt-btn { padding: 6px 11px; }
  .jt-cd { grid-template-columns: 1fr; padding: 18px; }
  .jt-cd__img { max-width: 220px; margin: 0 auto; }
  .jt-dk { grid-template-columns: minmax(0, 1fr); }
  .jt-dk__side { position: static; }
  .jt-fan { flex-basis: 100%; height: 190px; }
  .jt-fan img { width: 112px; margin-left: -56px; }
  .jt-quick { grid-template-columns: minmax(0, 1fr); }
  .jt-binder__logo { width: 96px; }
  .jt-ring { width: 66px; height: 66px; }
  .jt-ring b { font-size: 18px; }
}
@media (max-width: 520px) {
  .jt .jt-seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .jt .jt-seg button { flex: 0 0 auto; padding: 4px 10px; }
  .jt-binder__head { padding: 16px; }
  .jt-binder__id { flex-wrap: wrap; gap: 8px; }
  .jt-binder__logo { width: 120px; }
  .jt-binder__id > div { flex-basis: 100%; }
  .jt-binder__tools .jt-search { max-width: none; flex-basis: 100%; }
  .jt-dash { flex-basis: 100%; }
  .jt-dash__tile b { font-size: 22px; }
  .jt-exts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jt-ext__logo { height: 72px; }
  .jt-page { padding: 14px 10px 12px 26px; }
  .jt-page::before { left: 6px; width: 12px; }
  .jt-page__grid { gap: 6px; }
  .jt-pocket__bar button, .jt-pocket__bar a { width: 26px; height: 26px; font-size: 12px; }
  .jt-pocket__bar { gap: 2px; }
  .jt-vis__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jt-dcard { grid-template-columns: 76px minmax(0, 1fr); }
  .jt-bars li { grid-template-columns: 96px minmax(0, 1fr) 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .jt *, .jt *::before { animation: none !important; transition: none !important; }
}

/* ============================================================
   Encart « outils » des fiches carte et extension (pf26_jcc_tools_box)
   Chargé hors de .jt : couleurs autonomes, sombre compris.
   ============================================================ */
.jt-cardtools {
  --jt-line: rgba(255, 255, 255, .22);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 8px 0; padding: 22px 24px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 92% -10%, rgba(255, 203, 5, .25), transparent 45%), linear-gradient(135deg, #0A1A45, #0E2A6B 60%, #1F57C3);
}
.jt-cardtools__text { flex: 1 1 320px; min-width: 0; }
.jt-cardtools__eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FFCB05; }
.jt-cardtools h4 { margin: 0 0 6px; font-family: var(--pfb-font-titre); font-size: 20px; color: #fff; }
.jt-cardtools p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.jt-cardtools__have { display: block; color: #4FD18B; }
.jt-cardtools__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.jt-cardtools .jt-btn { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.jt-cardtools .jt-btn:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.jt-cardtools .jt-btn--primary { background: #FFCB05; border-color: #FFCB05; color: #101631; }
.jt-cardtools .jt-btn--primary:hover { background: #F5B800; }
.jt-cardtools .jt-btn--ghost { background: transparent; }

/* Accueil JCC : « Construis, collectionne, partage » (pf26_jcc_tools_home) */
.jt-home__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.jt-home__tile {
  position: relative; display: grid; align-content: start; gap: 8px; min-height: 220px; padding: 24px; border-radius: 22px; overflow: hidden;
  color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s;
  background: radial-gradient(circle at 100% 0, rgba(255, 203, 5, .25), transparent 45%), linear-gradient(150deg, #0A1A45, #1F57C3);
}
.jt-home__tile--collection { background: radial-gradient(circle at 100% 0, rgba(79, 209, 139, .28), transparent 45%), linear-gradient(150deg, #0A1A45, #146B55); }
.jt-home__tile--decks { background: radial-gradient(circle at 100% 0, rgba(255, 122, 102, .3), transparent 45%), linear-gradient(150deg, #0A1A45, #8E2A14); }
.jt-home__tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14, 42, 107, .3); }
.jt-home__tile::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; opacity: .14; background: repeating-radial-gradient(circle, transparent 0 16px, #fff 17px 18px); pointer-events: none; }
.jt-home__ico { font-size: 34px; line-height: 1; }
.jt-home__tile strong { font-family: var(--pfb-font-titre); font-size: 22px; }
.jt-home__tile span { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.jt-home__tile em { margin-top: auto; font-style: normal; font-weight: 800; color: #FFCB05; }
/* Priorité sur les styles des fiches (tcg-card-single.css, jcc.css) */
.jt-cardtools .jt-cardtools__eyebrow { color: #FFCB05; }
.jt-cardtools .jt-cardtools__text h4, .jt-home .jt-home__tile strong { font-family: var(--pfb-font-titre); font-weight: 800; letter-spacing: -.01em; }
