/* ==========================================================================
   TCG Univers — design system
   System fonts only (no third-party request), one accent, one "holo" line.
   ========================================================================== */

:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --ink: #0E1530;
  --ink-2: #3B4560;
  --muted: #646D88;
  --line: #E2E6EF;
  --primary: #4338CA;
  --primary-soft: #EEEFFF;
  --accent: #FFC83D;
  --dark: #0A0F24;
  --dark-2: #161D3D;
  --holo: linear-gradient(90deg, #FF6AD5, #C774E8, #AD8CFF, #8795E8, #94D0FF, #5EE7DF, #FFD86F);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 21, 48, .06), 0 8px 24px rgba(14, 21, 48, .06);
  --shadow-hover: 0 2px 4px rgba(14, 21, 48, .08), 0 14px 32px rgba(14, 21, 48, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1200px;
  --header-h: 67px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tcg-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.tcg-skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 8px 14px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.tcg-skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.tcg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; border-radius: 999px; border: 0;
  font: 700 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.tcg-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.tcg-btn--accent { background: var(--accent); color: var(--ink); }
.tcg-btn--primary { background: var(--primary); color: #fff; }
.tcg-btn--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ── Header ──────────────────────────────────────────────────────────── */
.tcg-header { position: sticky; top: 0; z-index: 50; background: var(--dark); color: #fff; }
.tcg-header::after { content: ""; display: block; height: 3px; background: var(--holo); }
.tcg-header__bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.tcg-logo {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: #fff; text-decoration: none; font-weight: 850; font-size: 1.22rem; letter-spacing: -.02em;
}
.tcg-logo svg { width: 28px; height: 36px; flex-shrink: 0; }
.tcg-logo span { white-space: nowrap; }
.tcg-nav { flex: 1; min-width: 0; }
/* Rubric names are editable: if the menu ever outgrows the bar it wraps onto a
   second line instead of running under the search and subscribe buttons. */
.tcg-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tcg-nav__link, .tcg-dropdown > summary {
  display: block; padding: 8px 10px; border-radius: 999px; cursor: pointer;
  color: rgba(255, 255, 255, .86); font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.tcg-nav__link:hover, .tcg-dropdown > summary:hover,
.tcg-nav__link[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.tcg-dropdown { position: relative; }
.tcg-dropdown > summary { list-style: none; }
.tcg-dropdown > summary::-webkit-details-marker { display: none; }
.tcg-dropdown > summary::after { content: " ▾"; font-size: .8em; opacity: .8; }
.tcg-dropdown__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px;
  min-width: 340px; padding: 10px; border-radius: 14px;
  background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(10, 15, 36, .28);
}
.tcg-dropdown__panel a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; font-weight: 650; font-size: .92rem;
}
.tcg-dropdown__panel a:hover { background: var(--primary-soft); }
.tcg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--b-bg, var(--primary)); }
.tcg-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tcg-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; color: #fff; text-decoration: none;
}
.tcg-icon-btn:hover { background: rgba(255, 255, 255, .1); }
.tcg-icon-btn svg { width: 20px; height: 20px; }

@media (max-width: 1279px) {
  .tcg-header__bar { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; }
  .tcg-nav__list { flex-wrap: nowrap; }
  .tcg-logo { margin-right: auto; }
  .tcg-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 8px; }
  .tcg-nav::-webkit-scrollbar { display: none; }
  .tcg-dropdown__panel { position: fixed; top: auto; left: 12px; right: 12px; min-width: 0; }
  .tcg-header__actions .tcg-btn { min-height: 38px; padding: 8px 14px; }
}

/* ── Page head, breadcrumb, chips ────────────────────────────────────── */
.tcg-main { padding: 26px 0 64px; }
.tcg-breadcrumb { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.tcg-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tcg-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.tcg-breadcrumb a { text-decoration: none; }
.tcg-breadcrumb a:hover { text-decoration: underline; }
.tcg-eyebrow {
  display: inline-block; margin: 0 0 6px; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--primary);
}
.tcg-page-head h1 {
  margin: 0 0 10px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 850; letter-spacing: -.025em;
}
.tcg-page-head p { margin: 0; max-width: 75ch; color: var(--ink-2); font-size: 1.05rem; }
.tcg-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.tcg-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: .9rem;
}
.tcg-chip:hover { border-color: var(--ink-2); }
.tcg-chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tcg-chip__count { color: var(--muted); font-weight: 500; font-size: .8rem; }
.tcg-chip[aria-current="true"] .tcg-chip__count { color: rgba(255, 255, 255, .7); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.tcg-layout { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 1024px) { .tcg-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.tcg-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tcg-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tcg-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.tcg-badges { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.tcg-badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px; text-decoration: none;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--b-bg, var(--primary-soft)); color: var(--b-fg, var(--primary));
}
.tcg-badge--soft { background: var(--bg); color: var(--ink-2); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.tcg-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tcg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tcg-card:focus-within { box-shadow: 0 0 0 3px var(--accent), var(--shadow-hover); }
.tcg-card__media {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--dark-2), var(--b-bg, var(--primary)));
}
.tcg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tcg-card__placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: rgba(255, 255, 255, .9); font-weight: 850; font-size: 1.1rem; letter-spacing: .02em; text-align: center; padding: 12px;
}
.tcg-card__body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 14px 16px 16px; }
.tcg-card__title { margin: 0; font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; }
.tcg-card__title a { text-decoration: none; }
.tcg-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tcg-card__excerpt {
  margin: 0; color: var(--ink-2); font-size: .93rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Separators sit in the gap, left of each item: the first item of every line
   has its dot outside the box, clipped — no stray "·" when the line wraps. */
.tcg-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; overflow: hidden; color: var(--muted); font-size: .82rem; }
.tcg-meta > * { position: relative; }
.tcg-meta > *::before { content: "·"; position: absolute; left: -12px; }
@media (min-width: 760px) {
  .tcg-card--featured { grid-column: 1 / -1; flex-direction: row; }
  .tcg-card--featured .tcg-card__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 300px; }
  .tcg-card--featured .tcg-card__body { padding: 26px 28px; justify-content: center; }
  .tcg-card--featured .tcg-card__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; }
  .tcg-card--featured .tcg-card__excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
  .tcg-card--featured .tcg-meta { margin-top: 6px; }
}

/* ── Compact list (latest articles) ──────────────────────────────────── */
.tcg-minis { list-style: none; margin: 0; padding: 0; }
.tcg-mini { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.tcg-minis li:first-child .tcg-mini { border-top: 0; padding-top: 0; }
.tcg-mini__media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--dark-2), var(--primary)); }
.tcg-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.tcg-mini__title { display: block; font-weight: 750; font-size: .92rem; line-height: 1.3; }
.tcg-mini:hover .tcg-mini__title { text-decoration: underline; }
.tcg-mini__date { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }

/* ── Aside boxes, offers, codes ──────────────────────────────────────── */
.tcg-aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .tcg-aside--sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.tcg-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.tcg-box__title { margin: 0 0 12px; font-size: 1rem; font-weight: 850; }
.tcg-box__note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.tcg-offer { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.tcg-offer + .tcg-offer { margin-top: 12px; }
.tcg-offer__head { display: flex; align-items: center; gap: 10px; }
.tcg-offer__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--bg); }
.tcg-offer__partner { display: block; font-weight: 800; }
.tcg-offer__label { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.tcg-offer__title { margin: 0; font-weight: 700; }
.tcg-offer__tagline { margin: 0; color: var(--ink-2); font-size: .9rem; }
.tcg-code {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 8px 7px 12px; border: 2px dashed var(--primary); border-radius: 10px;
  background: var(--primary-soft); color: var(--primary); font: 800 .95rem/1.2 var(--font-mono);
}
.tcg-code button {
  border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer;
  background: var(--primary); color: #fff; font: 700 .8rem/1 var(--font);
}
.tcg-offer .tcg-btn { width: 100%; min-height: 40px; }
.tcg-newsletter-box { background: var(--dark); color: #fff; }
.tcg-newsletter-box p { color: rgba(255, 255, 255, .8); margin: 0 0 12px; font-size: .92rem; }
.tcg-form { display: grid; gap: 8px; }
.tcg-input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  font: 1rem var(--font); background: #fff; color: var(--ink);
}
.tcg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.tcg-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 34px 0 0; }
.tcg-page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700;
}
a.tcg-page:hover { border-color: var(--ink-2); }
.tcg-page[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tcg-page--gap { border: 0; background: none; min-width: 20px; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.tcg-empty { padding: 34px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.tcg-empty h2 { margin: 0 0 8px; font-size: 1.3rem; }
.tcg-empty p { margin: 0 auto; max-width: 52ch; color: var(--ink-2); }
.tcg-empty--page { margin: 28px auto; max-width: 720px; padding: 44px 28px; }
.tcg-empty--page h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.02em; }
.tcg-form--inline { grid-template-columns: minmax(0, 1fr) auto; max-width: 520px; margin: 22px auto 0; }
.tcg-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px !important; }

/* ── Home ────────────────────────────────────────────────────────────── */
/* Optional home carousel (gallery "Jouer dans le héros" or slides) */
.tcg-carousel { position: relative; margin: 18px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.tcg-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tcg-carousel__track::-webkit-scrollbar { display: none; }
.tcg-carousel__track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tcg-carousel .item { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 2 / 1; }
.tcg-carousel .item a { display: block; height: 100%; color: inherit; }
.tcg-carousel .item img { width: 100%; height: 100%; object-fit: cover; }
.tcg-carousel figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 22px 18px; color: #fff; background: linear-gradient(to top, rgba(10, 15, 36, .88), rgba(10, 15, 36, 0)); }
.tcg-carousel figcaption span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tcg-carousel figcaption strong { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.tcg-carousel__nav { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.tcg-carousel__nav[hidden] { display: none; }
.tcg-carousel__nav button { min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(10, 15, 36, .72); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tcg-carousel__nav button:hover, .tcg-carousel__nav button:focus-visible { background: var(--primary); }
@media (max-width: 640px) { .tcg-carousel .item { aspect-ratio: 4 / 3; } }

.tcg-intro { padding: 10px 0 4px; }
.tcg-intro h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; max-width: 22ch; }
.tcg-intro p { margin: 0; max-width: 70ch; color: var(--ink-2); font-size: 1.08rem; }
.tcg-section { margin-top: 52px; }
.tcg-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.tcg-section__head h2 { margin: 0; font-size: 1.45rem; font-weight: 850; letter-spacing: -.02em; }
.tcg-more { color: var(--primary); font-weight: 750; text-decoration: none; white-space: nowrap; }
.tcg-more:hover { text-decoration: underline; }
.tcg-offers-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.tcg-offers-strip .tcg-offer { background: var(--surface); box-shadow: var(--shadow); border: 0; }
.tcg-games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tcg-game {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; text-decoration: none;
  background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--b-bg, var(--primary));
}
.tcg-game:hover { box-shadow: var(--shadow-hover); }
.tcg-game strong { font-size: 1.02rem; }
.tcg-game span { color: var(--muted); font-size: .85rem; }
.tcg-band { margin-top: 56px; padding: 32px; border-radius: 20px; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.tcg-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--holo); }
.tcg-band h2 { margin: 0 0 8px; font-size: 1.6rem; }
.tcg-band p { margin: 0 0 16px; max-width: 60ch; color: rgba(255, 255, 255, .82); }
.tcg-band .tcg-form { grid-template-columns: minmax(0, 1fr) auto; max-width: 520px; }
.tcg-seo { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tcg-seo h2 { margin: 0 0 6px; font-size: 1.1rem; }
.tcg-seo p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ── Article ─────────────────────────────────────────────────────────── */
.tcg-preview { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #FFF4D1; color: #5A4300; font-weight: 650; }
.tcg-article-head { max-width: 860px; }
.tcg-article-head h1 { margin: 12px 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; letter-spacing: -.025em; }
.tcg-deck { margin: 0 0 14px; color: var(--ink-2); font-size: 1.15rem; }
.tcg-article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .9rem; }
.tcg-article-meta strong { color: var(--ink); }
.tcg-cover { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); aspect-ratio: 2 / 1; }
.tcg-cover img { width: 100%; height: 100%; object-fit: cover; }
.tcg-article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
@media (min-width: 1024px) { .tcg-article-layout { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; align-items: start; } }
.tcg-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 6px; }
.tcg-toc li { font-size: .92rem; }
.tcg-toc li.is-sub { padding-left: 14px; font-size: .86rem; }
.tcg-toc a { text-decoration: none; color: var(--ink-2); }
.tcg-toc a:hover { color: var(--primary); text-decoration: underline; }
.tcg-toc--inline { margin-bottom: 26px; }
.tcg-toc--inline summary { cursor: pointer; font-weight: 850; }
.tcg-toc--inline[open] summary { margin-bottom: 10px; }
@media (min-width: 1024px) { .tcg-toc--inline { display: none; } }
@media (max-width: 1023px) { .tcg-toc--aside { display: none; } }

.tcg-prose { font-size: 1.07rem; line-height: 1.78; color: var(--ink); overflow-wrap: anywhere; }
.tcg-prose > :first-child { margin-top: 0; }
.tcg-prose h2 { margin: 2em 0 .6em; font-size: 1.6rem; font-weight: 850; letter-spacing: -.015em; }
.tcg-prose h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; font-weight: 800; }
.tcg-prose p { margin: 0 0 1.1em; }
.tcg-prose ul, .tcg-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.tcg-prose ul { list-style: disc; }
.tcg-prose ol { list-style: decimal; }
.tcg-prose li { margin: .35em 0; }
.tcg-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.tcg-prose img { border-radius: 10px; margin: 1.2em 0; }
.tcg-prose figure { margin: 1.4em 0; }
.tcg-prose figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.tcg-prose blockquote { margin: 1.5em 0; padding: .3em 0 .3em 1.1em; border-left: 4px solid var(--primary); color: var(--ink-2); font-style: italic; }
.tcg-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.tcg-prose th, .tcg-prose td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tcg-prose th { background: var(--primary-soft); }
.tcg-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.tcg-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 28px 0 0; padding: 0; list-style: none; }
.tcg-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.tcg-gallery figcaption { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.tcg-article-foot { margin-top: 34px; display: grid; gap: 20px; }
.tcg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tcg-share span { font-weight: 800; margin-right: 4px; }
.tcg-share a, .tcg-share button {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 650 .88rem/1 var(--font);
}
.tcg-author { display: flex; gap: 14px; align-items: center; }
.tcg-author__avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--holo); color: var(--ink); font-weight: 900; font-size: 1.2rem;
}
.tcg-author p { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; }

/* ── Index pages (rubrics & games) ───────────────────────────────────── */
.tcg-cat-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcg-cat-tile {
  display: grid; gap: 6px; padding: 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); box-shadow: var(--shadow); border-left: 5px solid var(--b-bg, var(--primary));
}
.tcg-cat-tile:hover { box-shadow: var(--shadow-hover); }
.tcg-cat-tile strong { font-size: 1.1rem; }
.tcg-cat-tile p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.tcg-cat-tile span { color: var(--muted); font-size: .82rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.tcg-footer { position: relative; margin-top: auto; padding: 48px 0 0; background: var(--dark); color: rgba(255, 255, 255, .8); }
.tcg-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--holo); }
.tcg-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tcg-footer h2 { margin: 0 0 12px; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.tcg-footer p { margin: 10px 0 0; font-size: .92rem; }
.tcg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tcg-footer a { text-decoration: none; }
.tcg-footer a:hover { color: #fff; text-decoration: underline; }
.tcg-footer .tcg-logo { font-size: 1.15rem; }
.tcg-footer .tcg-offer { border-color: rgba(255, 255, 255, .14); }
.tcg-footer .tcg-offer__tagline, .tcg-footer .tcg-offer__label { color: rgba(255, 255, 255, .7); }
.tcg-footer .tcg-offer__logo { background: rgba(255, 255, 255, .08); }
.tcg-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Brèves */
.tcg-breves { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tcg-breve { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.tcg-breve time { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); }
.tcg-breve h2 { margin: 4px 0 6px; font-size: 1.15rem; }
.tcg-breve h2 a { color: var(--ink); text-decoration: none; }
.tcg-breve h2 a:hover { color: var(--primary); }
.tcg-breve p { margin: 0; color: var(--ink-2); }
.tcg-breve--full h1 { margin: 4px 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.tcg-breve--full .tcg-prose { margin: 18px 0; }
.tcg-breves--compact { gap: 6px; margin-bottom: 14px; }
.tcg-breves--compact .tcg-breve { padding: 0; box-shadow: none; background: none; }
.tcg-breves--compact .tcg-breve time { display: inline; margin-right: 6px; }

/* Form feedback */
.tcg-form__error { margin: 10px auto 0 !important; max-width: 520px; color: #B42318 !important; font-weight: 600; }
.tcg-form__note { margin-top: 12px !important; font-size: .88rem; color: var(--muted) !important; }
.tcg-form--left { margin: 18px 0 0; }
.tcg-gallery--page { margin: 8px 0 0; }
.tcg-gallery--page img { aspect-ratio: auto; max-height: 520px; }

/* ==========================================================================
   Annuaire des boutiques
   ========================================================================== */
.tcg-dir-stats { margin-top: 10px !important; font-size: .95rem; }
.tcg-dir-stats strong { color: var(--ink); }
.tcg-dir-filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; margin: 6px 0 26px; }
.tcg-dir-filters__actions { display: flex; gap: 14px; align-items: center; }
.tcg-field { display: grid; gap: 6px; margin-bottom: 12px; }
.tcg-dir-filters .tcg-field { margin: 0; }
.tcg-field label, .tcg-field__label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.tcg-field--wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .tcg-dir-filters .tcg-field--wide { grid-column: span 2; } }
.tcg-field__help { color: var(--muted); font-size: .8rem; }
select.tcg-input { appearance: auto; }
.tcg-shops { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tcg-shop { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.tcg-shop__main { min-width: 0; display: grid; gap: 6px; }
.tcg-shop__name { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.tcg-shop__name a { color: var(--ink); text-decoration: none; }
.tcg-shop__name a:hover { color: var(--primary); }
.tcg-shop__place { margin: 0; color: var(--ink-2); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tcg-shop__place span { color: var(--muted); }
.tcg-shop__services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tcg-shop__services li { padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; }
.tcg-shop__services--lg li { padding: 6px 14px; font-size: .9rem; }
.tcg-shop__more { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.tcg-shop__more:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 640px) { .tcg-shop { flex-direction: column; align-items: stretch; } .tcg-shop__more { text-align: center; } }
.tcg-verified { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #E3F6EC; color: #11613A; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.tcg-verified::before { content: "✓ "; }
.tcg-area-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tcg-area-links li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tcg-area-links li:last-child { border-bottom: 0; }
.tcg-area-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.tcg-area-links a:hover { color: var(--primary); }
.tcg-area-links span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tcg-dir-cta p { margin: 0 0 12px; color: var(--ink-2); font-size: .92rem; }
.tcg-dir-cta .tcg-btn { width: 100%; }
.tcg-shop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 18px 0 8px; }
.tcg-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: .94rem; }
.tcg-facts dt { color: var(--muted); font-weight: 700; }
.tcg-facts dd { margin: 0; overflow-wrap: anywhere; }
.tcg-badges--lg .tcg-badge { padding: 6px 12px; font-size: .82rem; }
.tcg-shop-page .tcg-section h2 { font-size: 1.15rem; margin: 0 0 12px; }
.tcg-shop-form { max-width: 860px; padding: 24px; }
.tcg-shop-form fieldset { margin: 0 0 18px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--line); }
.tcg-shop-form legend { margin-bottom: 12px; font-weight: 850; font-size: 1.05rem; }
.tcg-form-row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tcg-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.tcg-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.tcg-checks ul { list-style: none; margin: 0; padding: 0; }
.tcg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 4px; }
.tcg-consent input { margin-top: 4px; }
.tcg-shop-form .tcg-form__error { margin: 4px 0 0 !important; max-width: none; text-align: left; }
.tcg-home-shops p { margin: 0 0 12px; color: var(--ink-2); }
.tcg-home-shops .tcg-btn { margin-top: 12px; }
.tcg-area-links--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 28px; }

