/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-family: 'Inter', sans-serif; }

/* ── CSS Variables (default Forêt palette) ── */
:root {
  --bg: #f9f9f9;
  --surface: #f4f3f1;
  --surface-low: #eeecea;
  --surface-variant: #f0ece4;
  --card: #f4f3f1;
  --primary: #3c6663;
  --primary-container: #beebe7;
  --primary-tint: #e8f4ec;
  --text: #2f3334;
  --text-muted: #6b7475;
  --text-light: #9aa4a5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ── Grain texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}
#page { position: relative; z-index: 1; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-fast {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fast.revealed { opacity: 1; transform: translateY(0); }

/* ── Page transition ── */
.page-wrapper { animation: pageIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Card hover ── */
.game-card {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease;
}
.game-card:hover,
.reveal.revealed.game-card:hover,
.stagger.revealed > .game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -10px rgba(47, 51, 52, 0.16), 0 6px 16px -4px rgba(47, 51, 52, 0.08);
}

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.scrolled {
  background: rgba(249, 249, 249, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* Décalage quand la barre d'admin WordPress est visible */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--primary); }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-desktop a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-desktop a:hover { color: var(--text); }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-search-btn:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 767px) {
  .site-header-inner { padding: 16px 20px; }
  .nav-desktop { display: none; }
  .hamburger-btn { display: flex; }
}

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed;
  top: var(--header-h, 62px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgb(249, 249, 249);
  flex-direction: column;
  padding: 24px 32px 40px;
  animation: menuIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.admin-bar .mobile-menu { top: calc(32px + var(--header-h, 62px)); }
@media screen and (max-width: 782px) { .admin-bar .mobile-menu { top: calc(46px + var(--header-h, 62px)); } }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-nav a {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.mobile-menu-nav a:hover { color: var(--primary); }

/* ── Responsive grid ── */
.grid-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 767px) { .grid-games { grid-template-columns: 1fr; gap: 18px; } }
@media (min-width: 768px) and (max-width: 1023px) { .grid-games { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

/* ── Filter bar ── */
.filter-bar {
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px 12px;
  white-space: nowrap;
  min-width: max-content;
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 767px) { .filter-bar-inner { padding: 0 20px 12px; } }
.filter-bar-track {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  transform: translateY(50%);
  display: none;
  cursor: pointer;
  z-index: 2;
  transition: height 0.2s ease, background 0.15s ease;
}
.filter-bar-track:hover,
.filter-bar-track.is-dragging {
  height: 7px;
  background: rgba(0, 0, 0, 0.11);
}
.filter-bar-thumb {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  cursor: grab;
  transition: background 0.15s ease;
  pointer-events: all;
}
.filter-bar-track:hover .filter-bar-thumb {
  background: rgba(0, 0, 0, 0.42);
}
.filter-bar-track.is-dragging .filter-bar-thumb {
  cursor: grabbing;
  background: var(--primary);
  transition: none;
}
.filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 4px;
  flex-shrink: 0;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.filter-pill:hover { background: var(--surface-low); color: var(--text); }
.filter-pill.active {
  background: var(--primary-container);
  color: var(--primary);
}
/* Flèche de direction sur les boutons de tri Année / Durée */
.sort-dir-icon {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  min-width: 0.75em;
  display: inline-block;
  transition: opacity 0.15s ease;
}
.filter-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(0,0,0,0.14);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.filter-toggle:hover { color: var(--text); border-color: rgba(0,0,0,0.22); }
.filter-toggle.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-container);
}
.sticky-filter-bar {
  position: sticky;
  top: var(--header-h, 62px);
  z-index: 50;
  background: rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 48px;
  overflow: visible;
}
/* Variante fond surface pour la zone 2 */
.sticky-filter-bar--surface {
  background: rgba(244, 243, 241, 0.96);
}

/* ── Tags / Pills ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-0 { background: #d4ede9; color: #2a5855; }
.tag-1 { background: #e4e0f0; color: #4a3a70; }
.tag-2 { background: #f0e4d8; color: #6a3a20; }
.tag-3 { background: #e0ecf8; color: #2a4a70; }
.tag-4 { background: #f0eed8; color: #5a4a10; }
.difficulty-debutant { background: #e8f4ec; color: #2a5c38; }
.difficulty-initie { background: #fff4e0; color: #7a4a10; }
.difficulty-expert { background: #ffe8e8; color: #8c2a2a; }

/* Les cartes de la zone 2 (jeux pas uniquement à 2) ont un fond blanc */
#games-zone-2 .game-card { background: #ffffff; }

/* ── Game card ── */
.game-card {
  background: var(--card);
  border-radius: var(--radius-md);
  color: inherit;
  display: flex;
  flex-direction: column;
}
.game-card-image {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.game-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.game-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 0%;
}
.game-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.game-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.game-card-price {
  font-family: 'Newsreader', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  flex-shrink: 0;
}
.game-card-desc {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-container);
  color: var(--primary);
}
.tag-mecanique {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}
.game-card-mechanics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

/* ── Index : playlist rows ── */
.prow { border-top: 1px solid rgba(0,0,0,0.08); }
.prow-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr 100px 100px 110px 110px 24px;
  gap: 24px;
  align-items: baseline;
  text-align: left;
}
@media (max-width: 767px) {
  .prow-btn { grid-template-columns: 1fr 24px; gap: 12px; padding: 22px 0; }
  .prow-meta { display: none; }
}
.prow-name {
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.2s ease;
}
.prow-btn:hover .prow-name,
.prow.open .prow-name { color: var(--primary); }
.prow-ext {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-left: 10px;
  vertical-align: middle;
}
.prow-meta { color: var(--text-muted); }
.prow-year     { font-family: 'Newsreader', serif; font-style: italic; font-size: 14px; font-variant-numeric: tabular-nums; }
.prow-players  { font-family: 'Newsreader', serif; font-size: 14px; }
.prow-duration { font-family: 'Newsreader', serif; font-size: 14px; font-variant-numeric: tabular-nums; }
.prow-diff     { font-family: 'Newsreader', serif; font-size: 14px; }
.prow-caret {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text-light);
  transition: transform 0.25s ease, color 0.2s ease;
  display: inline-block;
  line-height: 1;
}
.prow-btn:hover .prow-caret { color: var(--primary); }
.prow-detail-outer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.prow.open .prow-detail-outer {
  grid-template-rows: 1fr;
}
.prow-detail {
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  padding: 0;
  align-items: start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.prow.open .prow-detail {
  padding: 0 0 48px 0;
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1023px) {
  .prow-detail { grid-template-columns: 1fr; gap: 32px; }
}
.prow-desc {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 36px;
}
.prow-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 28px;
}
@media (max-width: 767px) {
  .prow-spec-grid { grid-template-columns: 1fr; gap: 16px; }
}
.prow-spec-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 6px;
}
.prow-spec-value {
  font-family: 'Newsreader', serif;
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.prow-image { border-radius: var(--radius-md); overflow: hidden; }
.prow-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.prow-text-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

/* ── Index filter/sort bar ── */
.sticky-filter-bar--index { margin-bottom: 0; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 10px; }
.sticky-filter-bar--index .filter-bar-inner { max-width: 1000px; }
.sticky-filter-bar--index .filter-bar-inner--main { padding-bottom: 10px; }
.sticky-filter-bar--index .filter-bar-inner--sort { padding-top: 10px; padding-bottom: 10px; max-width: none; }

/* ── Index : two-row filter bar ── */
.sticky-filter-bar--index .filter-bar {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.filter-row-scroller {
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.filter-row-scroller::-webkit-scrollbar { display: none; }
.filter-bar-inner--main { padding-bottom: 8px; }
.filter-bar-inner--sort {
  justify-content: center;
  min-width: unset;
  width: 100%;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 767px) {
  .filter-bar-inner--sort { justify-content: center; padding: 8px 20px; }
}
.index-bar-count {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Archive subtitle ── */
.archive-subtitle {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Article layout ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 72px;
  align-items: start;
}
@media (max-width: 1023px) { .article-layout { grid-template-columns: 1fr; } }
.sidebar-sticky { position: sticky; top: calc(var(--header-h, 62px) + 24px); }
@media (max-width: 1023px) { .sidebar-sticky { position: static; } }
.article-content {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
}
.article-content h2, .article-content h3, .article-content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 40px 0 16px;
}
.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 21px; }
.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { max-width: 100%; border-radius: var(--radius-md); margin: 32px 0; }

/* ── Spec grids ── */
.spec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  margin-bottom: 48px;
}
.spec-grid-4 > div {
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 24px;
}
@media (max-width: 767px) {
  .spec-grid-4 {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .spec-grid-4 > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: baseline;
    border-left: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .spec-grid-4 .spec-item-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin: 0;
  }
  .spec-grid-4 .spec-item-value {
    font-size: 16px;
    line-height: 1.4;
  }
}
.spec-item-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 12px;
}
.spec-item-value {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  margin: 0;
}

/* ── Spec detail grid (single-jeu) ── */
.spec-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin-bottom: 64px;
  align-items: stretch;
}
@media (max-width: 767px) {
  .spec-detail-grid { grid-template-columns: 1fr; gap: 0; }
}
.spec-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 16px;
  padding-top: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
@media (max-width: 767px) {
  .spec-detail-row { grid-template-columns: 120px 1fr; gap: 16px; }
}
.sdl {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.sdv {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

/* ── Collections ── */
.grid-coll-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-coll-mid  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-coll-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 767px) {
  .grid-coll-hero, .grid-coll-mid, .grid-coll-3 { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-coll-hero { grid-template-columns: 1fr 1fr; }
  .grid-coll-3 { grid-template-columns: repeat(2, 1fr); }
}
.collection-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--card);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(47,51,52,0.15);
}
.collection-card-image {
  position: relative;
  overflow: hidden;
}
.collection-card-image img, .collection-card-image .coll-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.collection-card:hover .collection-card-image img,
.collection-card:hover .coll-img-inner { transform: scale(1.04); }
.coll-label-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.collection-card-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.collection-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 10px;
}
.collection-card-desc {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 18px;
}
.collection-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.collection-card-link::after { content: '→'; transition: transform 0.2s ease; }
.collection-card:hover .collection-card-link::after { transform: translateX(3px); }
.coll-quote-block {
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
}
.coll-quote-text {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.coll-quote-attr {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ── Utility ── */
.px-page { padding-left: 40px; padding-right: 40px; }
@media (max-width: 767px) { .px-page { padding-left: 20px; padding-right: 20px; } }
.mw-1200 { max-width: 1200px; margin: 0 auto; }
.mw-1000 { max-width: 1000px; margin: 0 auto; }
.mw-900 { max-width: 900px; margin: 0 auto; }
.mw-1400 { max-width: 1400px; margin: 0 auto; }
.hero-pad { padding: 108px 40px 88px; }
@media (max-width: 767px) { .hero-pad { padding: 72px 20px 56px; } }
.pt-nav { padding-top: 80px; }

/* ── Hero ── */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title em, .hero-italic {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95em;
}
.hero-subtitle {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-subtitle {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #335755;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(60, 102, 99, 0.4);
}
.btn-surface {
  background: var(--surface-low);
  color: var(--text);
}
.btn-surface:hover { background: var(--surface); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.15);
}
.btn-outline:hover { border-color: rgba(0,0,0,0.3); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ── Newsletter form ── */
.newsletter-form { display: flex; max-width: 440px; margin: 0 auto; }
@media (max-width: 639px) { .newsletter-form { flex-direction: column; gap: 10px; } }
.newsletter-input {
  flex: 1;
  padding: 13px 20px;
  border-radius: 9999px 0 0 9999px;
  border: none;
  background: var(--card);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
@media (max-width: 639px) {
  .newsletter-input { border-radius: 9999px; }
  .newsletter-input + .btn { border-radius: 9999px; }
}
.newsletter-input::placeholder { color: var(--text-light); }
.newsletter-input + .btn { border-radius: 0 9999px 9999px 0; }

/* ── Section blocks ── */
.section-block { padding: 80px 0; }
.section-block-sm { padding: 48px 0; }
@media (max-width: 767px) { .section-block { padding: 56px 0; } .section-block-sm { padding: 32px 0; } }

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s ease;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--text); }

/* ── Single jeu ── */
.jeu-title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.jeu-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
  margin-bottom: 64px;
}
.jeu-resume {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-muted);
  border-left: 3px solid var(--primary-container);
  padding-left: 28px;
  margin-bottom: 56px;
}
.cta-block {
  background: var(--primary-container);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 64px 0;
}
.cta-block-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.cta-block-price {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Sidebar card ── */
.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 24px 28px;
  margin-bottom: 16px;
}
.sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.sidebar-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
}
.sidebar-detail-inner .sidebar-spec-row:last-child { border-bottom: none; }
.sidebar-spec-label { color: var(--text-muted); }
.sidebar-spec-val { font-family: 'Newsreader', serif; font-size: 15px; font-weight: 400; color: var(--text); text-align: right; }
.sidebar-game-link {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 16px;
}
.sidebar-game-link:hover { color: var(--primary); }
.sidebar-specs-group { margin-bottom: 0; }

/* Mentions sous le bouton Philibert */
.philibert-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-light);
}
.affilie-details { display: inline; }
.affilie-details summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  color: var(--text-light);
}
.affilie-details summary::-webkit-details-marker { display: none; }
.affilie-details summary:hover { color: var(--text-muted); }
.affilie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.affilie-details p {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Bouton "Plus d'informations" — mobile only */
.sidebar-more-btn {
  display: none;
}
@media (max-width: 1023px) {
  /* Ombre au-dessus du bouton — effet "second badge" qui se déplie */
  .sidebar-specs-secondary {
    position: relative;
  }
  .sidebar-specs-secondary::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: -24px;
    right: -24px;
    height: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.06) 0%, transparent 100%);
    pointer-events: none;
  }
  .sidebar-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 4px;
    gap: 8px;
    text-align: left;
  }

  .sidebar-more-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: white;
    background: var(--primary);
    border-radius: 50%;
    padding: 5px;
    width: 12px;
    height: 12px;
    box-sizing: content-box;
  }
  .sidebar-specs-secondary.open .sidebar-more-btn svg {
    transform: rotate(180deg);
  }
  /* Collapsible detail */
  .sidebar-detail-outer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sidebar-specs-secondary.open .sidebar-detail-outer {
    grid-template-rows: 1fr;
  }
  .sidebar-detail-inner {
    overflow: hidden;
    min-height: 0;
  }
}
/* Desktop : toujours visible */
@media (min-width: 1024px) {
  .sidebar-detail-outer { display: block; }
}
/* single-jeu.php : deux layouts selon breakpoint */
.jeu-specs-mobile { display: none; }
@media (max-width: 767px) {
  .jeu-specs-desktop { display: none; }
  .jeu-specs-mobile { display: block; }
}

/* ── Related games ── */
.related-section { margin-top: 80px; padding-top: 48px; border-top: 1px solid rgba(0,0,0,0.08); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 767px) { .related-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Single jeu: two-column layout ── */
.jeu-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  margin-top: 48px;
}
@media (max-width: 1023px) { .jeu-layout { grid-template-columns: 1fr; gap: 32px; } }

.jeu-verdict {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.jeu-verdict-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.jeu-verdict-text {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}
.jeu-body-content {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.jeu-body-content p { margin-bottom: 20px; }
.jeu-body-content p:last-child { margin-bottom: 0; }
.jeu-body-content h2 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.jeu-body-content h3 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 28px 0 10px; color: var(--text); }
.jeu-body-content ul, .jeu-body-content ol { padding-left: 20px; margin-bottom: 20px; }
.jeu-body-content li { margin-bottom: 6px; }

/* Sidebar */
.jeu-sidebar { position: sticky; top: calc(var(--header-h, 62px) + 24px); }
@media (max-width: 1023px) { .jeu-sidebar { position: static; } }

.jeu-sidebar-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  margin-bottom: 14px;
}
.jeu-sidebar-box-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.jeu-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
}
.jeu-info-row:last-of-type { border-bottom: none; }
.jeu-info-label { color: var(--text-muted); }
.jeu-info-val { font-weight: 600; color: var(--text); text-align: right; }
.jeu-philibert-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}
.jeu-dispo {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}
.jeu-collection-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.15s ease;
}
.jeu-collection-link:last-child { border-bottom: none; padding-bottom: 0; }
.jeu-collection-link:hover { color: var(--primary); }
.jeu-collection-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-low);
}
.jeu-collection-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ── Single jeu: no-article (single-column) layout ── */
.jeu-meta-line {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}
.jeu-meta-line span + span::before { content: ' · '; opacity: 0.5; }
.jeu-subtitle {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 14px;
}
.jeu-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.jeu-bref-content {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  max-width: 640px;
}
.jeu-bref-content p { margin-bottom: 16px; }
.jeu-bref-content p:last-child { margin-bottom: 0; }

/* Spec table — 2 key-value pairs per row */
.spec-table-2x2 {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 64px;
}
.spec-table-2x2 tr { border-top: 1px solid rgba(0,0,0,0.07); }
.spec-table-2x2 td { padding: 16px 0; vertical-align: baseline; }
.spec-table-2x2 .sl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  width: 18%;
  padding-right: 16px;
  padding-top: 19px;
}
.spec-table-2x2 .sv {
  width: 32%;
  padding-right: 48px;
  color: var(--text);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 400;
}
@media (max-width: 767px) {
  .spec-table-2x2 tr { display: flex; flex-direction: column; padding: 12px 0; }
  .spec-table-2x2 td { padding: 3px 0; width: auto !important; }
}

/* Extension-de card (no-article layout) */
.jeu-ext-base-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 580px;
  transition: box-shadow 0.2s ease;
}
.jeu-ext-base-card:hover { box-shadow: 0 8px 24px -4px rgba(0,0,0,0.1); }
.jeu-ext-base-img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.jeu-ext-base-title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.jeu-ext-base-desc {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jeu-ext-base-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA block: Philibert (no-article version) */
.cta-block-philibert {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 48px 0;
}
.cta-philibert-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.cta-philibert-title {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
@media (max-width: 767px) {
  .cta-block-philibert { display: none; }
  .cta-philibert-title { font-size: 18px; }
}

/* ── About page ── */
.about-founders {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}
.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 767px) { .about-grid { grid-template-columns: 1fr; } }
.check-list { list-style: none; }
.check-list li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.07); font-size: 14px; color: var(--text); display: flex; gap: 10px; align-items: baseline; }
.check-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 56px 40px 40px;
  margin-top: 80px;
}
@media (max-width: 767px) { .site-footer { padding: 48px 20px 32px; } }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 767px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}
.footer-tagline {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.65;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.45;
}
@media (max-width: 767px) { .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ── Archive hero ── */
.archive-hero { padding: 108px 40px 64px; }
@media (max-width: 767px) { .archive-hero { padding: 80px 20px 48px; } }
.archive-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.archive-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}
.archive-title em {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
}
.archive-count {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Alphabetical index ── */
.index-letter-group + .index-letter-group { margin-top: 0; }
.index-letter-sep {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 36px 0 8px;
  line-height: 1;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 0;
}
.index-letter-group.is-first-visible .index-letter-sep { padding-top: 8px; }

/* ── Search overlay ── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(249,249,249,0.96);
  backdrop-filter: blur(20px);
  align-items: flex-start;
  padding-top: 120px;
  padding-left: 40px;
  padding-right: 40px;
}
.search-overlay.open { display: flex; justify-content: center; }
.search-overlay-inner { width: 100%; max-width: 640px; }
.search-overlay-form { display: flex; gap: 12px; }
.search-overlay-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  padding-bottom: 12px;
}
.search-overlay-input::placeholder { color: var(--text-light); }
.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--text-muted);
  padding: 0 8px;
}

/* ── Image wrap / zoom ── */
.game-image-wrap {
  position: relative;
  overflow: hidden;
}
.game-image-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Virtual-crop variant: zoom via background-size on hover */
.game-image-wrap--crop {
  transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-position 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-card:hover .game-image-wrap--crop,
.game-card:focus-within .game-image-wrap--crop {
  /* Slight scale-up of the background – JS stores base sizes,
     we add 5% via a custom property so the crop centre stays locked */
  filter: brightness(1.02);
}

/* ── Stagger animation ── */
.stagger > * { opacity: 0; transform: translateY(16px); }
.stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }

/* ── Misc ── */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-serif-italic { font-family: 'Newsreader', serif; font-style: italic; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── Grid nav (homepage pagination) ─────────────────────────────────────── */
.grid-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 0 8px;
}
.grid-nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.grid-nav-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 9999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  line-height: 1;
}
.grid-nav-btn:hover:not(:disabled) {
  background: var(--surface-variant, #f0ece4);
  border-color: rgba(0,0,0,0.28);
}
.grid-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.grid-nav-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 52px;
  text-align: center;
  letter-spacing: 0.03em;
}
.grid-nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.grid-filter-summary,
.index-filter-summary {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.4em;
  margin: 0;
}
hr.divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 48px 0; }

/* ═══════════════════════════════════════════════════════════════
   GAME GALLERY
   ═══════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ── */
.game-gallery {
  width: 100%;
  user-select: none;
}

/* ── Stage: fixed-ratio container ── */
.game-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1120 / 500;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1a1a1a;
}

/* ── Slot A / B — stacked, full-size ── */
.gg-slot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.42s ease;
}
.gg-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Entering / exiting states */
.gg-slot.is-entering-right { transform: translateX(100%);  opacity: 0; }
.gg-slot.is-entering-left  { transform: translateX(-100%); opacity: 0; }
.gg-slot.is-exiting-left   { transform: translateX(-100%); opacity: 0; }
.gg-slot.is-exiting-right  { transform: translateX(100%);  opacity: 0; }


/* ── Layer 1: blurred background ── */
.gg-bg {
  position: absolute;
  inset: -30px; /* extra bleed to cover gaussian-blur edge bleed */
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.06); /* prevent blur-edge artefacts */
}

/* ── Layer 2: adaptive gradient ── */
.gg-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Layer 2b: white background for transparent PNGs ── */
/* Dimensions set dynamically by JS to match the contained image */
.gg-white {
  position: absolute;
  background: #ffffff;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ── Layer 3: main image ── */
.gg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.38));
}

/* Première image (featured) : remplit le cadre comme avant */
.gg-img--cover {
  object-fit: cover;
  padding: 0;
  filter: none;
}
/* Première image avec cadrage virtuel : div background-image au lieu de <img> */
.gg-img--crop {
  padding: 0;
  filter: none;
  object-fit: initial; /* sans effet sur <div>, mais annulé pour <img> éventuel */
}
/* PNG transparent : l'ombre est sur .gg-white, pas sur l'image */
.gg-slot[data-transparent="1"] .gg-img {
  filter: none;
}

/* ── Thumbnail strip ── */
.game-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  margin-left: -4px;
}
.game-gallery-thumbs::-webkit-scrollbar { display: none; }

/* Vignettes inline (page jeu sans article) : centrées sous le stage */
.game-gallery .game-gallery-thumbs {
  justify-content: center;
  margin-left: 0;
}

/* ── Individual thumbnail ── */
.gg-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  background: rgba(0, 0, 0, 0.06);
  transition: opacity 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  opacity: 0.65;
}
.gg-thumb[data-transparent="1"] {
  background: #ffffff;
}
.gg-thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.gg-thumb.is-active {
  box-shadow: 0 0 0 2.5px var(--primary);
  opacity: 1;
}
.gg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Bouton plein écran (hover sur le stage) ── */
.gg-zoom-btn {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  padding: 0;
  color: #fff;
}
.gg-zoom-btn svg {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.game-gallery-stage:hover .gg-zoom-btn {
  background: rgba(0, 0, 0, 0.2);
}
.game-gallery-stage:hover .gg-zoom-btn svg {
  opacity: 1;
  transform: scale(1);
}

/* ── Lightbox ── */
.gg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.gg-lightbox.is-open {
  background: rgba(0, 0, 0, 0.92);
  pointer-events: auto;
}
.gg-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}
/* PNG transparent dans la lightbox : fond blanc, coins droits, ombre sur le cadre */
.gg-lightbox-img.has-white-bg {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.15);
}
.gg-lightbox.is-open .gg-lightbox-img {
  opacity: 1;
  transform: scale(1);
}
.gg-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}
.gg-lightbox.is-open .gg-lightbox-close {
  opacity: 1;
}
.gg-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.gg-lightbox-prev,
.gg-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}
.gg-lightbox-prev { left: 20px; }
.gg-lightbox-next { right: 20px; }
.gg-lightbox.is-open .gg-lightbox-prev,
.gg-lightbox.is-open .gg-lightbox-next { opacity: 1; }
.gg-lightbox-prev:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) translateX(-2px); }
.gg-lightbox-next:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) translateX(2px); }

/* ── Fallback: single image keeps border-radius ── */
.game-gallery--single .game-gallery-stage {
  border-radius: var(--radius-lg);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .gg-slot { transition: opacity 0.25s ease; }
  .gg-slot.is-entering-right,
  .gg-slot.is-entering-left { transform: none; }
  .gg-slot.is-exiting-left,
  .gg-slot.is-exiting-right  { transform: none; }
}

/* ── Mobile: smaller thumbs ── */
@media (max-width: 600px) {
  .gg-thumb { width: 56px; height: 56px; border-radius: 6px; }
  .gg-img   { padding: 14px; }
}

/* ── Bloc "Pourquoi à deux" (page À propos) ── */
.tdl-pourquoi-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tdl-pourquoi-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
