/* =================== Page Cartes TCG — vitrine (maquette « Cartes TCG ») =================== */
.tg-page { --tr: #e5322d; --tr2: #ff4d3d; --tgold: #e9c27a; background: #08080b; color: #ece6d6; }
.tg-page .container { width: var(--wrap); margin-inline: auto; }
.tg-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 6px; background: linear-gradient(180deg, #e5322d, #b71f1b); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 28px -10px rgba(229, 50, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .2s, box-shadow .2s; }
.tg-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(229, 50, 45, .95); }
.tg-btn i { transition: transform .2s; }
.tg-btn:hover i { transform: translateX(3px); }
.tg-btn-sm { padding: 9px 14px; font-size: 11px; background: rgba(10, 10, 14, .55); border: 1px solid var(--tr); box-shadow: none; backdrop-filter: blur(4px); }

/* ---------- Héros ---------- */
.tg-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, 48vw, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 0 26px; }
.tg-hero-bg { position: absolute; inset: 0; z-index: -1; background: #08080b 72% 40% / cover no-repeat; }
.tg-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 11, .97) 0%, rgba(8, 8, 11, .82) 26%, rgba(8, 8, 11, .2) 52%, transparent 70%), linear-gradient(0deg, #08080b 2%, rgba(8, 8, 11, .6) 20%, transparent 42%), linear-gradient(180deg, rgba(8, 8, 11, .6), transparent 18%); }
.tg-hero-jp { position: absolute; left: max(14px, calc(var(--gutter) / 2 - 12px)); top: 50%; transform: translateY(-50%); margin: 0; writing-mode: vertical-rl; font-family: var(--f-jp); font-size: 15px; letter-spacing: .4em; color: rgba(236, 230, 214, .45); }
.tg-hero-inner { position: relative; min-height: 0; display: flex; align-items: flex-end; justify-content: space-between; flex: 1; }
.tg-hero-copy { max-width: 540px; padding-bottom: 34px; }
.tg-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12px; color: rgba(236, 230, 214, .6); }
.tg-crumb i { font-size: 8px; } .tg-crumb a:hover { color: #fff; } .tg-crumb span { color: var(--tr2); }
.tg-title { margin: 0; font-family: 'Cinzel', var(--f-impact); font-weight: 700; font-size: clamp(44px, 5.2vw, 92px); line-height: .95; white-space: nowrap; letter-spacing: .02em; text-transform: uppercase; color: #f5efe2; text-shadow: 0 6px 30px rgba(0, 0, 0, .8); }
.tg-title em { display: inline-block; margin-left: .08em; font-family: var(--f-script); font-style: normal; text-transform: none; font-size: 1.12em; color: var(--tr); transform: rotate(-6deg) translateY(.04em); text-shadow: 0 0 28px rgba(229, 50, 45, .55), 0 4px 14px rgba(0, 0, 0, .7); }
.tg-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #e6dccb; }
.tg-tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--tr); }
.tg-lead { margin: 0 0 26px; max-width: 470px; font-size: 15.5px; line-height: 1.65; color: rgba(236, 230, 214, .82); }
.tg-lead strong { color: #fff; }
.tg-hero-quote { position: absolute; right: 0; top: 13%; margin: 0; font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(11px, .85vw, 13px); line-height: 1.55; letter-spacing: .16em; padding: 14px 0 0 16px; background: radial-gradient(closest-side, rgba(8,8,11,.55), transparent); text-transform: uppercase; color: rgba(236, 230, 214, .8); text-align: right; text-shadow: 0 2px 12px #000; }
.tg-hero-quote b { color: var(--tr2); font-weight: 700; }
.tg-trust { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tg-trust li { display: flex; align-items: center; gap: 14px; font-size: 13px; line-height: 1.35; color: rgba(236, 230, 214, .82); }
.tg-trust i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(229, 50, 45, .45); border-radius: 50%; color: var(--tr2); font-size: 16px; }

/* ---------- Franchises ---------- */
.tg-franchises { padding: 34px 0 18px; }
.tg-fr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tg-fr { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 7.4; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: flex-end; transition: border-color .3s, box-shadow .3s, transform .3s; }
.tg-fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: -2; transition: transform .7s ease; }
.tg-fr::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 30%, rgba(8, 8, 11, .55) 55%, rgba(8, 8, 11, .82)); }
.tg-fr:hover { border-color: var(--fc); box-shadow: 0 18px 40px -18px var(--fc); transform: translateY(-3px); }
.tg-fr:hover img { transform: scale(1.05); }
.tg-fr-body { width: 52%; padding: 0 22px 0 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tg-fr-body p { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ece6d6; }
.tg-logo { font-weight: 900; line-height: 1; white-space: nowrap; }
.tg-logo-ygo { font-family: 'Cinzel', serif; font-size: clamp(22px, 2.3vw, 36px); font-style: italic; color: #fff3c4; background: linear-gradient(180deg, #fff8d8, #e9b44c 60%, #a8711d); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a0f0f) drop-shadow(0 0 12px rgba(229, 50, 45, .5)); }
.tg-logo-pkm { font-family: var(--f-body); font-size: clamp(24px, 2.5vw, 40px); color: #ffcb05; -webkit-text-stroke: 2px #2a5fb0; paint-order: stroke fill; letter-spacing: .01em; filter: drop-shadow(0 3px 0 #1b3d78); }
.tg-logo-op { display: flex; flex-direction: column; align-items: center; font-family: var(--f-impact); font-weight: 400; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.tg-logo-op i { font-size: .6em; color: var(--tr); margin-bottom: 2px; }
.tg-logo-op small { font-family: var(--f-body); font-size: .32em; font-weight: 600; letter-spacing: .3em; color: rgba(255, 255, 255, .75); }

/* ---------- Types ---------- */
.tg-types { padding: 10px 0 28px; }
.tg-type-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.tg-type { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 10px 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: radial-gradient(120% 90% at 50% 0%, rgba(229, 50, 45, .1), transparent 60%), #0f0f13; transition: border-color .25s, transform .25s, background .25s; }
.tg-type svg { width: 50px; height: 50px; margin-bottom: 10px; fill: none; stroke: var(--tr2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(229, 50, 45, .45)); transition: transform .3s; }
.tg-type strong { font-size: 15px; font-weight: 600; color: #f5efe2; }
.tg-type span { font-size: 12.5px; color: rgba(236, 230, 214, .55); }
.tg-type:hover { border-color: rgba(229, 50, 45, .7); transform: translateY(-3px); background: radial-gradient(120% 90% at 50% 0%, rgba(229, 50, 45, .22), transparent 65%), #121217; }
.tg-type:hover svg { transform: scale(1.08) rotate(-3deg); }

/* ---------- En-têtes de section ---------- */
.tg-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.tg-h { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-family: 'Cinzel', var(--f-impact); font-weight: 700; font-size: clamp(22px, 2.1vw, 32px); letter-spacing: .06em; text-transform: uppercase; color: #f5efe2; }
.tg-h i { font-size: .72em; color: var(--tgold); }
.tg-head-sub { font-size: 14px; color: rgba(236, 230, 214, .6); }
.tg-more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tr2); }
.tg-more:hover { color: #fff; }

/* ---------- Sélection du moment ---------- */
.tg-picks { padding: 22px 0 30px; }
.tg-pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tg-pick { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: #0f0f13; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.tg-pick:hover { border-color: rgba(229, 50, 45, .6); transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(229, 50, 45, .7); }
.tg-pick-media { position: relative; display: block; aspect-ratio: 1; background: radial-gradient(70% 60% at 50% 55%, rgba(229, 50, 45, .16), transparent 70%), #16161b; overflow: hidden; }
.tg-pick-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tg-pick:hover .tg-pick-media img { transform: scale(1.06); }
.tg-badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #3a3a44; color: #fff; }
.tg-badge.is-new { background: #2f8f4e; } .tg-badge.is-best { background: #c42620; } .tg-badge.is-pop { background: #49495a; } .tg-badge.is-promo { background: #e5322d; }
.tg-wish, .tg-peek { position: absolute; right: 10px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 8, 11, .6); color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s, background .2s; }
.tg-wish { top: 10px; } .tg-peek { top: 48px; }
.tg-pick:hover :is(.tg-wish, .tg-peek), .tg-wish.is-on, .tg-wish:focus-visible, .tg-peek:focus-visible { opacity: 1; transform: none; }
.tg-wish:hover, .tg-peek:hover { background: var(--tr); }
.tg-pick-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 12px; }
.tg-pick-fr { font-size: 11.5px; color: rgba(236, 230, 214, .55); }
.tg-pick-name { font-size: 13.5px; font-weight: 500; line-height: 1.35; color: #f5efe2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tg-pick-name:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--tr); }
.tg-pick-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg-price { display: flex; flex-direction: column; line-height: 1.05; }
.tg-price strong { font-family: var(--f-impact); font-weight: 400; font-size: 22px; letter-spacing: .02em; color: var(--tr2); }
.tg-price s { font-size: 11.5px; color: rgba(236, 230, 214, .45); }
.tg-add { flex: none; width: 38px; height: 34px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--tr); background: transparent; color: var(--tr2); cursor: pointer; transition: background .2s, color .2s; }
.tg-add:hover { background: var(--tr); color: #fff; }
.tg-add:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Accessoires ---------- */
.tg-acc { padding: 22px 0 40px; }
.tg-acc-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 14px; }
.tg-acc-main { position: relative; overflow: hidden; isolation: isolate; min-height: 380px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; }
.tg-acc-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.tg-acc-main::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 11, .96) 0%, rgba(8, 8, 11, .82) 30%, rgba(8, 8, 11, .1) 58%, transparent); }
.tg-acc-copy { padding: 34px 36px; max-width: 360px; }
.tg-acc-kicker { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(236, 230, 214, .7); }
.tg-acc-copy h3 { margin: 2px 0 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1; text-transform: uppercase; color: #f5efe2; }
.tg-acc-sub { margin: 6px 0 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tr2); }
.tg-acc-copy ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.tg-acc-copy li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(236, 230, 214, .85); }
.tg-acc-copy li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(229, 50, 45, .18); color: var(--tr2); }
.tg-acc-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.tg-acc-card { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); min-height: 110px; transition: border-color .25s; }
.tg-acc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; transition: transform .6s; }
.tg-acc-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 11, .92) 0%, rgba(8, 8, 11, .7) 50%, rgba(8, 8, 11, .2)); }
.tg-acc-card div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tg-acc-card strong { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #f5efe2; }
.tg-acc-card span { font-size: 12.5px; color: rgba(236, 230, 214, .65); }
.tg-acc-card > i { color: var(--tr2); transition: transform .2s; }
.tg-acc-card:hover { border-color: rgba(229, 50, 45, .65); }
.tg-acc-card:hover img { transform: scale(1.06); }
.tg-acc-card:hover > i { transform: translateX(4px); }

/* ---------- Bandeau confiance ---------- */
.tg-strip { border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); background: #0b0b0f; }
.tg-strip ul { list-style: none; margin-inline: auto; padding: 22px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tg-strip li { display: flex; align-items: center; gap: 12px; }
.tg-strip i { flex: none; font-size: 22px; color: rgba(236, 230, 214, .8); }
.tg-strip div { display: flex; flex-direction: column; line-height: 1.3; }
.tg-strip strong { font-size: 13.5px; font-weight: 600; color: #f5efe2; }
.tg-strip span { font-size: 12px; color: rgba(236, 230, 214, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .tg-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-type-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tg-hero-quote { display: none; }
  .tg-fr-body { width: 60%; padding-right: 14px; }
  .tg-fr-body p { font-size: 10px; }
}
@media (max-width: 980px) {
  .tg-hero { min-height: 0; padding-top: 0; }
  .tg-hero-bg { position: relative; inset: auto; height: 58vw; min-height: 260px; background-size: 150% auto; background-position: 62% 20%; }
  .tg-hero-bg::after { background: linear-gradient(0deg, #08080b 0%, rgba(8, 8, 11, .2) 40%, transparent 70%); }
  .tg-hero-jp { display: none; }
  .tg-hero-copy { padding-bottom: 22px; margin-top: -40px; }
  .tg-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-fr-grid { grid-template-columns: 1fr; }
  .tg-fr { aspect-ratio: 16 / 6.4; }
  .tg-fr-body p { font-size: 11px; }
  .tg-acc-grid { grid-template-columns: 1fr; }
  .tg-acc-side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tg-hero-bg { height: 78vw; background-size: 190% auto; background-position: 62% 4%; height: 74vw; }
  .tg-trust { gap: 14px; } .tg-trust li { font-size: 12px; gap: 10px; } .tg-trust i { width: 34px; height: 34px; font-size: 14px; }
  .tg-fr { aspect-ratio: 16 / 8; }
  .tg-fr-body { width: 58%; padding: 0 12px 0 0; gap: 8px; }
  .tg-type-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .tg-type-row li { flex: 0 0 31%; scroll-snap-align: start; }
  .tg-type { padding: 16px 6px 14px; } .tg-type svg { width: 40px; height: 40px; } .tg-type strong { font-size: 13px; } .tg-type span { font-size: 11px; }
  .tg-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tg-wish, .tg-peek { opacity: 1; transform: none; }
  .tg-more { margin-left: 0; }
  .tg-head { flex-direction: column; align-items: flex-start; }
  .tg-acc-main { min-height: 0; flex-direction: column; align-items: stretch; }
  .tg-acc-main > img { position: relative; height: 56vw; z-index: 0; }
  .tg-acc-main::after { display: none; }
  .tg-acc-copy { padding: 20px; max-width: none; background: #0f0f13; }
  .tg-acc-side { grid-template-columns: 1fr; }
  .tg-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
