/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

/* ── Skip to content (accessibilité clavier) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--primary, #3c6663);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
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;
  --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;
  /* Accent abricot + trait de bord — repris de la v3 */
  --accent: oklch(72% 0.17 49);
  --accent-deep: oklch(52% 0.16 44);
  --accent-tint: oklch(94.5% 0.05 67);
  --line: oklch(90% 0.004 100);
}

/* ── 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 (repris de la v3) ── */
.game-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
/* Effet « lift » : au survol souris (hover: hover) OU au toucher (classe
   .is-touch-active posée en JS sur la carte sous le doigt, cf. main.js).
   Le :hover est limité aux pointeurs réels : sur tactile, le :hover « colle »
   après un toucher (ces cartes sont des liens) et empêcherait la carte de
   revenir à son état initial au relâchement — c'est .is-touch-active (retiré
   au touchend) qui pilote l'effet tactile. */
@media (hover: hover) {
  .game-card:hover,
  .reveal.revealed.game-card:hover,
  .stagger.revealed > .game-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
    box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08);
  }
  /* Zoom image — !important : le JS event delegation peut poser
     transform:scale(1) inline quand le curseur quitte l'image mais reste sur
     la carte, ce qui annulerait le zoom. */
  .game-card:hover .game-image-wrap img,
  .game-card:hover .game-image-wrap .game-image-inner {
    transform: scale(1.06) !important;
  }
}
.game-card.is-touch-active,
.reveal.revealed.game-card.is-touch-active,
.stagger.revealed > .game-card.is-touch-active {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
  box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08);
}
.game-card.is-touch-active .game-image-wrap img,
.game-card.is-touch-active .game-image-wrap .game-image-inner {
  transform: scale(1.06) !important;
}

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Bordure TOUJOURS « solid » (jamais « none ») : seule sa couleur change au
     scroll. border-style n'est pas animable — none→solid bascule net, et la
     couleur interpolerait depuis le noir par défaut (currentColor, non défini
     à l'état initial) → flash noir avant de s'établir en gris. */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.scrolled {
  background: rgba(249, 249, 249, 0.9);
  border-bottom-color: 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); }
.site-logo-accent {
  position: relative;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C24 2.5 56 2 88 4.5c12 1 22 1.5 30 .5' fill='none' stroke='%23e8853c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 96%/100% 0.16em;
  padding-bottom: 0.1em;
}
.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;
}
/* Séparateur discret : isole l'option exclusive « Les deux » des modes inclusifs */
.filter-divider--soft {
  height: 12px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 2px;
}
/* Option exclusive « Les deux » — intersection des deux modes.
   Différenciée des pills inclusives : contour fin au repos, fond plein à l'état actif. */
.filter-pill--intersection {
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-style: italic;
}
.filter-pill--intersection:hover {
  border-color: rgba(0, 0, 0, 0.22);
}
.filter-pill--intersection.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.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;
}
/* Indicateurs de défilement : ombre verte aux bords, opacité pilotée par JS */
.sticky-filter-bar::before,
.sticky-filter-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 3;
}
.sticky-filter-bar::before {
  left: 0;
  opacity: var(--filter-fade-left, 0);
  /* 55° diagonal. Stop 0.00 à 60% pour que le fond de la diagonale reste dans le rectangle */
  background: linear-gradient(55deg,
    rgba(40, 80, 76, 0.52)  0%,
    rgba(40, 80, 76, 0.33) 18%,
    rgba(40, 80, 76, 0.14) 38%,
    rgba(40, 80, 76, 0.01) 55%,
    rgba(40, 80, 76, 0.00) 60%);
}
.sticky-filter-bar::after {
  right: 0;
  opacity: var(--filter-fade-right, 0);
  /* 305° = miroir de 55° */
  background: linear-gradient(305deg,
    rgba(40, 80, 76, 0.52)  0%,
    rgba(40, 80, 76, 0.33) 18%,
    rgba(40, 80, 76, 0.14) 38%,
    rgba(40, 80, 76, 0.01) 55%,
    rgba(40, 80, 76, 0.00) 60%);
}

/* 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-type { font-size: 10px; padding: 2px 8px; text-transform: capitalize; letter-spacing: 0; }
.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; }
.tag-gray { background: var(--surface-low); color: var(--text-muted); }
.tag-accent { background: var(--accent-tint); color: var(--accent-deep); }
.difficulty-debutant { background: #e8f4ec; color: #2a5c38; }
.difficulty-initie { background: #fff4e0; color: #7a4a10; }
.difficulty-expert { background: #ffe8e8; color: #8c2a2a; }

/* ── En-tête pages single (jeu / article) : fil d'Ariane, pastille joueurs,
   ligne méta « coup d'œil », bouton CTA. Partagé par single-jeu.php et single.php. ── */
/* Titre + sous-titre de l'en-tête (mêmes polices sur fiche jeu ET article). */
.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-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;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }
.breadcrumb-current { color: var(--text-light); }

/* Pastille « nombre de joueurs » */
.player-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.player-pill-dots { display: inline-flex; align-items: center; gap: 3px; }
.player-pill-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.player-pill-dots i.more { width: 5px; height: 5px; opacity: 0.4; }
.player-pill.is-deux { background: var(--primary-tint); color: var(--primary); }
.player-pill.is-solo-duo,
.player-pill.is-plus { background: var(--accent-tint); color: var(--accent-deep); }

/* Ligne méta « coup d'œil » */
.jeu-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}
.jeu-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.jeu-meta-item svg { color: var(--text-light); flex-shrink: 0; }
.jeu-meta-item strong { color: var(--text); font-weight: 600; }

/* Bouton pastille (CTA en-tête : « Lire notre article », « Voir la fiche du jeu ») */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--primary-container);
  color: #28504c;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-pill:hover { background: color-mix(in oklab, var(--primary-container) 82%, var(--primary)); transform: translateY(-1px); }
.btn-pill svg { flex-shrink: 0; }
.btn-pill-arrow { font-weight: 600; }

/* 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 {
  --radius-md: 18px; /* rayon v3, scopé à la carte */
  background: #ffffff;
  border: 1px solid var(--line);
  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;
  aspect-ratio: 3 / 2; /* ratio du slot "card" → background-size crop exact, sans distortion */
}
/* Le wrapper de l'image remplit le parent (aspect-ratio drive la hauteur) */
.game-card-image .game-image-wrap {
  height: 100% !important; /* override le height:Npx inline émis par PHP */
}
/* Le SVG placeholder a un height="220" HTML fixe — on le force à remplir son conteneur */
.game-card-image .game-image-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}
.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%;
  /* Permet au footer (tags) d'être toujours collé en bas */
  justify-content: flex-start;
}
.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: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--primary);
  padding: 4px 9px;
  border-radius: 9999px;
  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;
  flex: 1 1 auto; /* pousse le footer vers le bas */
}
.game-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}
.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.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,
.tag-mode {
  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);
}
.tag-mode {
  /* inline-flex : aligne le chevron SVG (coop = même sens, compétitif = face à face) */
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500; /* même épaisseur que .tag (badge niveau) */
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-mode svg { flex-shrink: 0; }
/* Compétitif — rouille pastel (slug interne 'affrontement') */
.tag-mode--affrontement {
  background: #f4e3dc;
  color: #8a2a09;
}
/* Coopératif — bleu pastel */
.tag-mode--cooperatif {
  background: #e4ebf3;
  color: #3a5879;
}
.game-card-mechanics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

/* ── 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; }

/* ── Carte « Pourquoi ce jeu est un bon jeu à deux joueurs ? »
 * Utilisée à la fois sur la fiche jeu (sans article) et sur la page article.
 * Arrondi sur les quatre coins ; ombre portée uniquement en mobile pour
 * détacher la carte du texte. La barre verte est une pastille interne
 * (::before sur la liste) calée sur la hauteur des raisons. */
.jeu-reasons-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 28px 32px 40px;
}
@media (max-width: 767px) {
  .jeu-reasons-card {
    padding: 24px 16px 24px 28px;
    box-shadow: 0 8px 28px rgba(47, 51, 52, 0.10), 0 2px 6px rgba(47, 51, 52, 0.05);
  }
}
.article-content .jeu-reasons-card { margin: 40px 0; }
.article-content .jeu-reasons-card h3 { margin-top: 0; }

/* Sur la fiche jeu (sans article), aligner la carte sur la largeur du
 * résumé (.jeu-bref-content) et la typographie de la page article
 * (.article-content), pour que la liste de raisons soit identique
 * dans les deux contextes. Le titre (.jeu-section-eyebrow) n'est pas
 * concerné par cet alignement. */
.jeu-reasons-block .jeu-reasons-card {
  max-width: 640px;
}
@media (max-width: 767px) {
  .jeu-reasons-block .jeu-reasons-card { max-width: 100%; }
}
.jeu-reasons-block .jeu-reasons-card .jeu-reasons-list {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  line-height: 1.78;
}

/* Liste à puces : label court en gras + texte sur la même ligne */
.jeu-reasons-card .jeu-reasons-list {
  position: relative;
  list-style: disc;
  margin: 0;
  padding-left: 22px;
  font: inherit;
}
.jeu-reasons-card .jeu-reasons-list::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -22px;
  width: 4px;
  border-radius: 4px;
  background: var(--primary);
}
@media (max-width: 767px) {
  .jeu-reasons-card .jeu-reasons-list::before { left: -16px; }
}
.jeu-reasons-card .jeu-reasons-list li {
  margin-bottom: 8px;
  font: inherit;
}
.jeu-reasons-card .jeu-reasons-list li:last-child { margin-bottom: 0; }
.jeu-reasons-card .jeu-reasons-list li::marker { color: var(--primary); }

/* ── 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; }
  /* Ordre mobile : Création, Illustration, Édition, Type(s), Mécanique(s), Âge recommandé */
  .spec-detail-grid .spec-detail-row:nth-child(1) { order: 1; } /* Création */
  .spec-detail-grid .spec-detail-row:nth-child(2) { order: 4; } /* Type(s) */
  .spec-detail-grid .spec-detail-row:nth-child(3) { order: 2; } /* Illustration */
  .spec-detail-grid .spec-detail-row:nth-child(4) { order: 5; } /* Mécanique(s) */
  .spec-detail-grid .spec-detail-row:nth-child(5) { order: 3; } /* Édition */
  .spec-detail-grid .spec-detail-row:nth-child(6) { order: 6; } /* Âge recommandé */
}
.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: #ffffff;
  border: 1px solid var(--line); /* même bordure que .game-card */
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.collection-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
  box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08); /* même ombre que .game-card:hover */
}
.collection-card-image {
  position: relative;
  overflow: hidden;
}
/* Carte « à jouer » du plugin dans l'archive :
   - pas d'arrondi propre : la tuile (overflow:hidden + border-radius) arrondit le
     haut → coin concentrique avec la bordure, sans « jour » entre les deux courbes ;
   - bas droit pour la jonction avec le bloc d'infos juste en dessous ;
   - pas d'ombre propre : la tuile porte l'ombre (notamment au hover). */
.collection-card-image .ttdl-card {
  border-radius: 0;
  box-shadow: none;
}
.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: 14px 28px 24px; 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-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.collection-card-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 9999px;
  white-space: nowrap;
}
.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;
}

/* ── Carte dynamique "Sélection du moment" ── */
.coll-dynamic-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #2a4f4d 100%);
}
.coll-dynamic-bg::after {
  content: '↻';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  color: rgba(255,255,255,0.12);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}
.coll-dynamic-badge {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}
.collection-card--dynamic .collection-card-title { color: var(--primary); }
.collection-card--dynamic .collection-card-link  { color: var(--primary); }
.collection-card--dynamic .collection-card-link::after { content: '↻'; }

/* ── 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-1100 { max-width: 1100px; 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;
  /* Souligné « tracé main » orange (v3). inline-block : sinon le trait
     se duplique sur chaque ligne quand le mot passe à la ligne. */
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C24 2.5 56 2 88 4.5c12 1 22 1.5 30 .5' fill='none' stroke='%23e8853c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 96%/100% 0.16em;
  padding-bottom: 0.1em;
}
.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;
}
/* ── Hero : carte "Dernier ajout" ── */
.hero-pad.has-latest {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
}
.hero-pad.has-latest .hero-content {
  flex: 0 1 680px;
  min-width: 0;
}
.latest-card-slot {
  /* Même largeur qu'une carte de grille (.grid-games, 3 colonnes, mw-1200) */
  flex: 0 0 354px;
  /* Marge haute pour que la carte arrière (nombre de joueurs) ne passe pas
     sous le header collant lors du survol (translateY négatif). */
  margin-top: 26px;
}
.latest-card {
  --radius-md: 18px; /* même rayon que .game-card */
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 56px -20px oklch(27% 0.02 195 / 0.22), 0 8px 20px -8px oklch(27% 0.02 195 / 0.12);
  transform: rotate(2.5deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
/* Carte « post-it » arrière : indique le nombre de joueurs. Ne dépasse
   que d'un mince bandeau au-dessus de la carte avant, rotation opposée. */
.latest-stack { position: relative; }
.latest-stack .latest-card { position: relative; z-index: 2; }
.latest-card-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9px;
  border-radius: 18px;
  box-shadow: 0 18px 42px -24px oklch(27% 0.02 195 / 0.22);
  transform: rotate(-3.5deg) translateY(-24px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
/* « Pour deux uniquement » : teinte verte (cohérente avec --primary). */
.latest-card-back.is-deux-only {
  background: var(--primary-tint);
  border: 1px solid color-mix(in oklab, var(--primary) 24%, var(--line));
}
.latest-card-back.is-deux-only .latest-players { color: var(--primary); }
/* « À deux ou plus » et « Solo ou duo » : teinte orange (cohérente avec --accent). */
.latest-card-back.is-deux-plus,
.latest-card-back.is-solo-duo {
  background: var(--accent-tint);
  border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--line));
}
.latest-card-back.is-deux-plus .latest-players,
.latest-card-back.is-solo-duo .latest-players { color: var(--accent-deep); }
.latest-players {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.latest-players-dots { display: inline-flex; align-items: center; gap: 3px; }
.latest-players-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.latest-players-dots i.more { width: 5px; height: 5px; opacity: 0.4; }

/* Hover desktop : les deux cartes bougent en sens de rotation opposé.
   :hover limité aux pointeurs réels (cf. note .game-card) ; le tactile passe
   par .is-touch-active (posée/retirée en JS). */
@media (min-width: 1024px) and (hover: hover) {
  .latest-card-slot:hover .latest-card {
    transform: rotate(-1.6deg) translate(-9px, -27px);
    border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
    box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08);
  }
  .latest-card-slot:hover .latest-card-back {
    transform: rotate(3deg) translate(8px, -50px);
    box-shadow: 0 26px 50px -22px oklch(27% 0.02 195 / 0.26);
    /* Décalage seulement à l'aller : la carte arrière démarre ~20 ms après
       l'avant. Au retour (hors hover), la transition sans délai de la règle de
       base reprend → les deux reviennent en même temps. */
    transition-delay: 0.02s;
  }
}
@media (min-width: 1024px) {
  .latest-card-slot.is-touch-active .latest-card {
    transform: rotate(-1.6deg) translate(-9px, -27px);
    border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
    box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08);
  }
  .latest-card-slot.is-touch-active .latest-card-back {
    transform: rotate(3deg) translate(8px, -50px);
    box-shadow: 0 26px 50px -22px oklch(27% 0.02 195 / 0.26);
    transition-delay: 0.02s;
  }
}
@media (hover: hover) {
  .latest-card-slot:hover .latest-card .card-badge { transform: rotate(-3deg) scale(1.05); }
}
.latest-card-slot.is-touch-active .latest-card .card-badge { transform: rotate(-3deg) scale(1.05); }
.latest-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: var(--surface-low);
  /* La carte parente est rotatée (transform: rotate(...)) : sans son propre
     contexte de composition, le clip border-radius/overflow peut "sauter"
     un frame au chargement et à chaque transform (hover) sur certains
     moteurs (glitch coins carrés visible brièvement). */
  transform: translateZ(0);
}
.latest-card-media .game-image-wrap,
.latest-card-media .game-image-wrap img,
.latest-card-media .game-image-wrap .game-image-inner {
  border-radius: inherit;
}
.latest-card-media .game-image-wrap { height: 100% !important; }
@media (hover: hover) {
  .latest-card-slot:hover .latest-card-media .game-image-wrap img,
  .latest-card-slot:hover .latest-card-media .game-image-wrap .game-image-inner {
    transform: scale(1.06) !important;
  }
}
.latest-card-slot.is-touch-active .latest-card-media .game-image-wrap img,
.latest-card-slot.is-touch-active .latest-card-media .game-image-wrap .game-image-inner {
  transform: scale(1.06) !important;
}
.latest-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.latest-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.latest-card-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
}
.latest-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.latest-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.latest-card-desc {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 1023px) {
  .hero-pad.has-latest { flex-direction: column; gap: 32px; }
  .hero-pad.has-latest .hero-content { flex: 1 1 auto; max-width: 100% !important; }
  /* Marges haute et basse : laisser dépasser le bandeau « nombre de joueurs »,
     respirer avec le hero (haut) et avec la zone des jeux (bas). */
  .latest-card-slot { flex: 1 1 auto; width: 100%; margin-top: 48px; margin-bottom: 32px; }
}
/* Tablette uniquement : carte « Dernier ajout » à la même largeur que le hero
   au-dessus (le hero est limité à 520px par .hero-subtitle), mais centrée
   horizontalement (le conteneur .hero-pad est en flex-start). */
@media (min-width: 768px) and (max-width: 1023px) {
  .latest-card-slot { width: 100%; max-width: 520px; align-self: center; }
}
@media (max-width: 1023px) {
  /* Sur mobile et tablette, la carte avant redevient "simple" (comme une
     .game-card, image en haut / contenu en dessous), fond blanc comme en
     desktop. La carte « post-it » du nombre de joueurs reste visible : elle
     dépasse en bandeau au-dessus, statiquement (pas de survol au toucher). */
  .latest-card {
    /* Léger pivot, inverse de la post-it (effet « deux post-it » comme en
       desktop), + petit décalage vers le bas pour révéler un peu plus le
       bandeau « nombre de joueurs ». */
    transform: rotate(1.5deg) translateY(7px);
    box-shadow: 0 18px 40px -22px oklch(27% 0.02 195 / 0.18);
    background: #fff;
    border-color: var(--line);
  }
  .latest-card-back {
    /* Rotation inversée par rapport à la carte avant, comme en desktop. */
    transform: rotate(-2deg) translateY(-22px);
  }
  /* Tactile : effet piloté par .is-touch-active (posée/retirée en JS suivant le
     doigt). Le :hover « collant » est traité dans le bloc (hover: hover) plus
     bas pour ne pas rester appliqué au relâchement. */
  .latest-card-slot.is-touch-active .latest-card {
    transform: translateY(-6px) rotate(-0.4deg);
    border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
    box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08);
  }
  /* La post-it « nombre de joueurs » bouge aussi, en sens de rotation opposé. */
  .latest-card-slot.is-touch-active .latest-card-back {
    transform: rotate(1.2deg) translate(6px, -28px);
    box-shadow: 0 22px 46px -22px oklch(27% 0.02 195 / 0.24);
  }
  .games-zone-header { margin-top: 40px; }
}
/* Survol souris dans une fenêtre < 1024px (cas desktop redimensionné). */
@media (max-width: 1023px) and (hover: hover) {
  .latest-card-slot:hover .latest-card {
    transform: translateY(-6px) rotate(-0.4deg);
    border-color: color-mix(in oklab, var(--primary) 28%, var(--line));
    box-shadow: 0 24px 48px -14px oklch(27% 0.02 195 / 0.18), 0 6px 16px -6px oklch(27% 0.02 195 / 0.08);
  }
  .latest-card-slot:hover .latest-card-back {
    transform: rotate(1.2deg) translate(6px, -28px);
    box-shadow: 0 22px 46px -22px oklch(27% 0.02 195 / 0.24);
  }
}
@media (prefers-reduced-motion: reduce) {
  .latest-card, .latest-card-back { transition: none; }
}

.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; }

/* ── Navigation bas de page (single-jeu, single) ── */
.page-back-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.page-back-nav-label {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 600px) {
  .page-back-nav { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── 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); }
@media (min-width: 640px) { .newsletter-input + .btn { border-radius: 0 9999px 9999px 0; } }
/* Honeypot anti-spam : hors écran, invisible et non focusable. */
.newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Message de retour (succès / erreur) sous le formulaire. */
.newsletter-status { max-width: 440px; margin: 16px auto 0; min-height: 1.4em; font-family: 'Inter', sans-serif; font-size: 14px; }
.newsletter-status.is-ok { color: var(--primary); }
.newsletter-status.is-error { color: #b3261e; }

/* ── 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); }

/* ── 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: 30;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
/* Le pop-up est en position:absolute, mais le transform des conteneurs .reveal
   (et de .page-wrapper) crée un contexte d'empilement qui le faisait passer SOUS
   les sections .reveal suivantes. Quand le disclosure est ouvert, on lève son
   conteneur .reveal au-dessus de ses voisins → le pop-up repasse au-dessus. */
.reveal:has(.affilie-details[open]),
.philibert-meta:has(.affilie-details[open]) { position: relative; z-index: 40; }

/* Bouton "Plus d'informations" — mobile only */
.sidebar-more-btn {
  display: none;
}
@media (max-width: 1023px) {
  .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;
    /* L'ombre suit le bouton — elle reste toujours juste au-dessus */
    position: relative;
  }
  /* Ombre portée : suit le bouton quand le collapsible s'ouvre */
  .sidebar-more-btn::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 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);
  }
  /* Remettre le trait sous la dernière catégorie sur mobile */
  .sidebar-detail-inner .sidebar-spec-row:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  /* Petite descente du bouton + Philibert à l'ouverture = démarcation visuelle */
  .sidebar-specs-secondary.open .sidebar-more-btn {
    margin-top: 16px;
  }
  /* 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; }
}

/* ── 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; } }


/* ── Search overlay (command palette) ── */
@keyframes tdl-fade-in   { from { opacity: 0 } to { opacity: 1 } }
@keyframes tdl-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 20, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 16px;
  padding-right: 16px;
}
.search-overlay.open {
  display: flex;
  animation: tdl-fade-in 0.18s ease both;
  overscroll-behavior: none; /* empêche le scroll de se propager au body */
}

/* ── Panel ── */
.search-panel {
  width: min(720px, 100%);
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 76vh;
  animation: tdl-slide-down 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Champ de saisie ── */
.search-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
}
.search-icon { flex-shrink: 0; color: var(--text-muted); }

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Newsreader', serif;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.005em;
  padding: 0;
  /* reset browser search styles */
  -webkit-appearance: none;
}
.search-input::placeholder { color: var(--text-muted); font-style: italic; }
.search-input::-webkit-search-cancel-button { display: none; }

.search-clear-btn,
.search-esc-btn {
  flex-shrink: 0;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.search-esc-btn { border-radius: 4px; }
.search-clear-btn:hover,
.search-esc-btn:hover { background: rgba(0,0,0,0.1); }

.search-input-sep { height: 1px; background: rgba(0,0,0,0.08); margin: 0; }

/* ── Contenu scrollable ── */
.search-body { overflow-y: auto; flex: 1; }

/* Ligne compteur + kbd */
.search-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 10px;
}
.search-counter {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── Résultats ── */
.search-result-row {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  border-left: 3px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.search-result-row:hover,
.search-result-row.is-focus {
  background: var(--surface);
}
.search-result-row.is-focus { border-left-color: var(--primary); }

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.search-result-body { min-width: 0; }
.search-result-name {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.search-field-badge {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  padding: 2px 6px;
  background: var(--primary-container);
  border-radius: 3px;
  white-space: nowrap;
}
.search-result-snippet {
  font-style: italic;
  font-family: 'Newsreader', serif;
  font-size: 12px;
  color: var(--text-muted);
}
.search-meta-sep { color: var(--text-light); }

.search-result-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-result-price {
  font-family: 'Newsreader', serif;
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.search-result-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-result-arrow.is-focus {
  background: var(--primary);
  color: #fff;
}

/* Surlignage */
.search-hl {
  background: var(--primary-container);
  color: var(--primary);
  padding: 0 2px;
  border-radius: 2px;
}

/* ── Aucun résultat ── */
.search-noresult {
  padding: 56px 28px;
  text-align: center;
}
.search-noresult-title {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.search-noresult-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-light);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ── État vide ── */
.search-empty-inner { padding: 20px 28px 24px; }
.search-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 12px;
}

/* Recherche guidée (questionnaire intégré à la palette) */
.search-guide { margin-bottom: 24px; }
.search-guide-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.search-guide-label {
  flex: 0 0 64px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.search-guide-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.search-gchip {
  background: var(--surface);
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-gchip:hover { background: var(--primary-container); color: var(--primary); }
.search-gchip.is-active { background: var(--primary); color: #fff; }
.search-guide-go {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--primary-container);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.search-guide-go:hover { background: var(--primary); color: #fff; }

/* Chips */
.search-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.search-chip {
  background: var(--surface);
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-chip:hover {
  background: var(--primary-container);
  color: var(--primary);
}

/* Récents */
.search-recents { margin-top: 4px; }
.search-recent-row {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.12s ease;
}
.search-recent-row:hover { background: rgba(0,0,0,0.02); }
.search-recent-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.search-recent-name {
  font-family: 'Newsreader', serif;
  font-size: 14px;
  color: var(--text);
}
.search-recent-year {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* ── Footer ── */
.search-footer {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 12px 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  flex-shrink: 0;
}
.search-footer-brand {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
}
.search-footer-hints { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }

/* ── Kbd hints ── */
.search-kbd-row { display: flex; gap: 14px; align-items: center; }
.search-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.search-kbd-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}
.search-kbd-hint span {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Mobile : panel sous la navbar, le clavier s'ouvre en dessous ── */
@media (max-width: 600px) {
  /* Overlay : commence juste sous le header fixe, marges latérales */
  .search-overlay {
    padding: calc(var(--header-h, 64px) + 6px) 12px 0;
    align-items: flex-start;
  }

  /* Panel avec tous les coins arrondis, pas bord à bord */
  .search-panel {
    width: 100%;
    border-radius: var(--radius-md);
    max-height: 70vh;
    animation-name: tdl-slide-down;
  }

  .search-input-row { padding: 16px 18px; gap: 10px; }
  .search-input { font-size: 17px; }
  .search-result-row { padding: 12px 18px; gap: 12px; }
  .search-result-price { display: none; }
  .search-empty-inner { padding: 16px 18px 20px; }

  /* Masquer tout ce qui concerne le clavier physique */
  .search-esc-btn,
  .search-kbd-row,
  .search-footer-hints { display: none !important; }

  /* Footer centré, marque seulement */
  .search-footer { justify-content: center; }
}

/* Masquer les raccourcis clavier sur écrans tactiles (quelle que soit la taille) */
@media (hover: none) and (pointer: coarse) {
  .search-esc-btn,
  .search-kbd-row,
  .search-footer-hints { display: none !important; }
  .search-meta-row { justify-content: flex-start; }
  .search-footer { justify-content: center; }
}

/* ── 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 : le zoom est géré via transform sur .game-image-inner (même logique que les images normales) */

/* ── 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: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1a1a1a;
  --gg-mix-margin: 26px; /* liseré du mode « Mix » (fond blanc → bord du cadre) */
}

/* ── 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);
  /* Transition douce quand JS réajuste le fond blanc depuis plein-stage → taille contenue */
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ── 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;
}
/* Scale : comportement géré par la classe de base .gg-img (contain + padding 24px) */
/* Mix : image entière (contain) posée sur un fond blanc quasi plein cadre.
 * Le liseré (marge blanc→bord) est piloté par --gg-mix-margin ; l'image est
 * redimensionnée en conséquence (padding = liseré + 10px de marge intérieure)
 * pour rester à l'intérieur du blanc. L'ombre est portée par le blanc. */
.gg-white--mix { inset: var(--gg-mix-margin, 26px); }
.gg-img--mix { filter: none; padding: calc(var(--gg-mix-margin, 26px) + 10px); }
/* 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;
}
/* Cercle glassmorphisme centré derrière l'icône */
.gg-zoom-btn::before {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(60, 102, 99, 0.3);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(60, 102, 99, 0.38);
  box-shadow: 0 2px 14px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gg-zoom-btn svg {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
/* Desktop : révélation au hover ── */
@media (hover: hover) {
  .game-gallery-stage:hover .gg-zoom-btn { background: rgba(0,0,0,0.2); }
  .game-gallery-stage:hover .gg-zoom-btn::before,
  .game-gallery-stage:hover .gg-zoom-btn svg { opacity: 1; transform: scale(1); }
}

/* Touch : révélation via la classe JS .gg-zoom-visible (après swipe) ── */
.gg-zoom-btn.gg-zoom-visible { background: rgba(0,0,0,0.2); }
.gg-zoom-btn.gg-zoom-visible::before,
.gg-zoom-btn.gg-zoom-visible 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; }
  /* Padding réduit uniquement en mode scale (contain). Les modes cover et crop
   * doivent rester sans padding pour remplir le cadre, sinon ils s'affichent
   * en retrait (fond flou visible autour) comme du scale. */
  .gg-img:not(.gg-img--cover):not(.gg-img--crop):not(.gg-img--mix) { padding: 14px; }
  /* Mode Mix : liseré réduit sur mobile (l'image se redimensionne via le calc ci-dessus). */
  .game-gallery-stage { --gg-mix-margin: 16px; }
}

/* ── 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;
}

/* ── Navigation adjacent (jeu précédent / suivant) — jeu + article ── */
.jeu-adjacent-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 64px;
}
.jeu-adjacent-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.jeu-adjacent-item:hover {
  background: var(--surface-low);
}
.jeu-adjacent-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.jeu-adjacent-item--next .jeu-adjacent-text {
  text-align: right;
}
.jeu-adjacent-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.jeu-adjacent-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jeu-adjacent-thumb {
  flex-shrink: 0;
  position: relative;
  width: 90px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-low);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.jeu-adjacent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Mobile (colonne unique) : « Suivant » avant « Précédent » (ordre visuel inversé). */
@media (max-width: 767px) {
  .jeu-adjacent-item--prev { order: 2; }
  .jeu-adjacent-item--next { order: 1; }
  .jeu-adjacent-nav { grid-template-columns: 1fr; }
  .jeu-adjacent-thumb { width: 72px; }
}

/* ── Eyebrow de section (jeu + article) ── */
.jeu-section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ── Bloc vidéo YouTube (jeu + article) ── */
.jeu-video-frame {
  display: inline-block;
  width: 100%;
  max-width: 784px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--primary-tint);
}
@media (max-width: 767px) {
  .jeu-video-frame {
    padding: 0;
    background: none;
    border-radius: 0;
  }
}
.jeu-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 6px 12px rgba(0, 0, 0, 0.16);
}
.jeu-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ── Badges des cartes jeu (repris de la v3) ── */
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 9999px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) { .game-card:hover .card-badge { transform: rotate(-3deg) scale(1.05); } }
.game-card.is-touch-active .card-badge { transform: rotate(-3deg) scale(1.05); }
.card-badge--article { background: var(--accent); color: #fdf8f2; }
.card-badge--fiche { background: rgba(255, 255, 255, 0.88); color: var(--primary); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.card-badge--ext { background: var(--primary-container); color: #28504c; }
.card-badge--ext.card-badge--stacked { top: 44px; }
.card-badge--date { top: 44px; background: var(--primary); color: #fff; letter-spacing: 0.05em; }
.game-card-image:has(.card-badge--ext.card-badge--stacked) .card-badge--date { top: 76px; }
@media (hover: hover) { .game-card:hover .card-badge--date { transform: rotate(3deg) scale(1.05); } }
.game-card.is-touch-active .card-badge--date { transform: rotate(3deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .game-card:hover .card-badge,
  .game-card:hover .card-badge--date,
  .prow-image:hover .card-badge { transform: none; }
}


/* ── Section « jeux similaires » (fiche jeu + article lié) ── */
.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); } }
