@import url('fonts.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #f5f5f5;
  min-height: 100vh;
}

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pousse le footer en bas quand le contenu est court */
.site-wrapper > nav   { flex-shrink: 0; }
.site-wrapper > footer { margin-top: auto; flex-shrink: 0; }

/* ── NAV ── */
.rg-nav {
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #efefef;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 20px;
}
.rg-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  color: #1a1a1a;
  text-decoration: none;
  flex-shrink: 0;
}
.rg-logo em { color: #0d9488; font-style: normal; }
.rg-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.rg-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  transition: color 0.15s;
}
.rg-nav-links a:hover,
.rg-nav-links a.active { color: #1a1a1a; }

/* Bouton hamburger — masqué sur desktop, affiché via media query */
.rg-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.rg-nav-toggle:hover { background: #f5f5f5; border-color: #ccc; }
.rg-nav-toggle:active { background: #efefef; }

/* Menu mobile — panneau séparé, caché sur desktop */
.rg-mobile-menu { display: none; }

.rg-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 7px 13px;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.rg-search:focus-within { border-color: #0d9488; }
.rg-search i { font-size: 15px; color: #bbb; }
.rg-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  width: 180px;
}
.rg-search input::placeholder { color: #bbb; }

/* ── BREADCRUMB BAR (barre sous la nav) ── */
.rg-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 32px;
  font-size: 12px;
  color: #bbb;
  border-bottom: 1px solid #efefef;
  background: #fff;
  position: sticky;
  top: 56px; /* hauteur de .rg-nav */
  z-index: 99;
}
.rg-breadcrumb-bar a { color: #999; text-decoration: none; font-weight: 500; transition: color 0.15s; white-space: nowrap; }
.rg-breadcrumb-bar a:hover { color: #0d9488; }
.rg-breadcrumb-bar span {
  color: #1a1a1a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rg-breadcrumb-bar i { font-size: 12px; color: #ddd; flex-shrink: 0; }

/* ── HERO HOMEPAGE ── */
.rg-hero {
  padding: 40px 32px 32px;
  border-bottom: 1px solid #efefef;
}
.rg-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.rg-hero-right {
  border-left: 1px solid #efefef;
  padding-left: 32px;
}
.rg-hero-right-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #bbb;
  margin-bottom: 12px;
}
.rg-hero-right-label a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.rg-hero-right-label a:hover { color: #0d9488; }
.rg-hero-right-label a.spinning i { animation: rg-spin 0.6s linear infinite; }
@keyframes rg-spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .rg-hero-split { grid-template-columns: 1fr; }
  .rg-hero-right { border-left: none; border-top: 1px solid #efefef; padding-left: 0; padding-top: 20px; }
}
.rg-hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  letter-spacing: 1px;
  line-height: 0.92;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.rg-hero-h1 em { color: #0d9488; font-style: normal; }
.rg-hero-sub { font-size: 14px; color: #999; max-width: 320px; line-height: 1.7; }
.rg-stats { display: flex; gap: 32px; flex-shrink: 0; }
.rg-stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  line-height: 1;
  display: block;
}
.rg-stat-l { font-size: 11px; color: #bbb; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 3px; }

/* ── PLATFORM STRIP ── */
.rg-platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 32px;
  border-bottom: 1px solid #efefef;
}
.rg-plat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--plat-color, #0d9488) 22%, white);
  background: color-mix(in srgb, var(--plat-color, #0d9488) 9%, white);
  color: var(--plat-color, #0d9488);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .12s, border-color .12s, color .12s;
}
.rg-plat i { font-size: 13px; color: inherit; }
.rg-plat-name { color: inherit; }
.rg-plat:hover {
  background: color-mix(in srgb, var(--plat-color, #0d9488) 16%, white);
  border-color: var(--plat-color, #0d9488);
}
.rg-plat.active {
  background: var(--plat-color, #0d9488);
  border-color: var(--plat-color, #0d9488);
  color: #fff;
}
/* Fallback pour navigateurs sans color-mix (Firefox < 113, Safari < 16.2) */
@supports not (color: color-mix(in srgb, red 10%, white)) {
  .rg-plat { background: #f0fdfa; border-color: #99e6e0; color: #0d9488; }
  .rg-plat:hover { background: #d4f4f1; border-color: #0d9488; }
  .rg-plat.active { background: #0d9488; border-color: #0d9488; color: #fff; }
}
.rg-plat-hidden { display: none; }
.rg-plat-more {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1.5px dashed #d1d5db;
  background: transparent;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .12s, color .12s;
}
.rg-plat-more:hover { border-color: #0d9488; color: #0d9488; }

/* Console icon colors */
.c-sms  i, .rg-t-sms  i, .rg-plat.c-sms  i { color: #0d9488; }
.c-md   i, .rg-t-md   i, .rg-plat.c-md   i { color: #3b82f6; }
.c-nes  i, .rg-t-nes  i, .rg-plat.c-nes  i { color: #e74c3c; }
.c-snes i, .rg-t-snes i, .rg-plat.c-snes i { color: #8b5cf6; }
.c-gb   i, .rg-t-gb   i, .rg-plat.c-gb   i { color: #16a34a; }
.c-pce  i, .rg-t-pce  i, .rg-plat.c-pce  i { color: #d97706; }
.c-gg   i, .rg-t-gg   i, .rg-plat.c-gg   i { color: #db2777; }
.c-atari i, .rg-t-atari i                   { color: #ea580c; }

/* ── BODY SECTION ── */
.rg-body { padding: 28px 32px; }
.rg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.rg-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}
.rg-see-all { font-size: 12px; font-weight: 500; color: #0d9488; text-decoration: none; }
.rg-see-all:hover { text-decoration: underline; }

/* ── GAMES GRID ── */
.rg-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.rg-game-card { cursor: pointer; text-decoration: none; display: block; }
.rg-game-thumb {
  border-radius: 8px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  border: 1px solid #f0f0f0;
  transition: border-color 0.15s;
  overflow: hidden;
}
.rg-game-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 1;
}
/* Quand l'image est présente, masquer icône et label derrière elle */
.rg-game-thumb:not(.no-img):not(.img-fallback) i,
.rg-game-thumb:not(.no-img):not(.img-fallback) .rg-game-thumb-lbl { visibility: hidden; }
.rg-game-card:hover .rg-game-thumb { border-color: #0d9488; }
.rg-game-thumb i { font-size: 24px; }
.rg-game-thumb-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 8px;
  line-height: 1.4;
}
.rg-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 3px 7px 2px;
  border-radius: 5px;
  color: #fff;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  z-index: 2;
}
.rg-score-tag {
  position: absolute;
  top: 8px; right: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.42);
  padding: 3px 7px 2px;
  border-radius: 5px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2;
}
.rg-game-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rg-game-year { font-size: 11px; color: #bbb; }

/* Console thumb backgrounds */
.rg-t-sms  { background: #f0fdfa; }  .rg-t-sms  .rg-game-thumb-lbl { color: #0d9488; }
.rg-t-md   { background: #eff6ff; }  .rg-t-md   .rg-game-thumb-lbl { color: #3b82f6; }
.rg-t-nes  { background: #fef2f2; }  .rg-t-nes  .rg-game-thumb-lbl { color: #e74c3c; }
.rg-t-snes { background: #f5f3ff; }  .rg-t-snes .rg-game-thumb-lbl { color: #8b5cf6; }
.rg-t-gb   { background: #f0fdf4; }  .rg-t-gb   .rg-game-thumb-lbl { color: #16a34a; }
.rg-t-pce  { background: #fffbeb; }  .rg-t-pce  .rg-game-thumb-lbl { color: #d97706; }
.rg-t-gg   { background: #fdf4ff; }  .rg-t-gg   .rg-game-thumb-lbl { color: #db2777; }
.rg-t-atari{ background: #fff7ed; }  .rg-t-atari .rg-game-thumb-lbl { color: #ea580c; }

/* Console badge backgrounds */
.rg-b-sms  { background: #0d9488; }
.rg-b-md   { background: #3b82f6; }
.rg-b-nes  { background: #e74c3c; }
.rg-b-snes { background: #8b5cf6; }
.rg-b-gb   { background: #16a34a; }
.rg-b-pce  { background: #d97706; }
.rg-b-gg   { background: #db2777; }
.rg-b-atari{ background: #ea580c; }

.rg-divider { border: none; border-top: 1px solid #efefef; margin: 0 0 28px; }

/* ── CONSOLES GRID ── */
.rg-consoles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rg-console-card {
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.rg-console-card:hover { border-color: #0d9488; background: #f0fdfa; }
.rg-console-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.rg-console-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.rg-console-count { font-family: 'DM Mono', monospace; font-size: 11px; color: #bbb; margin-top: 2px; }
.rg-console-card-more { border-style: dashed; }
.rg-console-card-more:hover { border-color: #0d9488; border-style: dashed; background: #f0fdfa; }
.rg-console-icon-more { background: #f5f5f5; color: #999; }
.rg-console-card-more:hover .rg-console-icon-more { color: #0d9488; }

/* ── HOME BOTTOM GRID ── */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #efefef;
}
.home-bottom-grid.has-anniv {
  grid-template-columns: 1fr 1fr;
}
.home-section {
  padding: 28px 32px;
}
.home-section:not(:last-child) {
  border-right: 1px solid #efefef;
}

/* Jeu aléatoire */
.random-game-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  padding: 16px;
  border: 1px solid #efefef;
  border-radius: 10px;
  background: var(--rcf, #f0fdfa);
  transition: border-color 0.15s;
}
.random-game-card:hover { border-color: var(--rc, #0d9488); }
.random-game-cover {
  width: 90px;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--rc, #0d9488);
}
.random-game-cover img { width: 100%; height: 100%; object-fit: cover; }
.random-game-info { flex: 1; min-width: 0; }
.random-game-badge {
  display: inline-block;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.random-game-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.random-game-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.random-game-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.random-game-score span { font-size: 14px; opacity: 0.6; }
.random-game-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* RSS */
.rss-list { display: flex; flex-direction: column; gap: 2px; }
.rss-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}
.rss-item:hover { background: #f5f5f5; }
.rss-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #efefef;
}
.rss-img img { width: 100%; height: 100%; object-fit: cover; }
.rss-text { flex: 1; min-width: 0; }
.rss-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rss-date { font-size: 11px; color: #bbb; }

/* Responsive */
@media (max-width: 768px) {
  .home-bottom-grid,
  .home-bottom-grid.has-anniv { grid-template-columns: 1fr; }
  .home-section:not(:last-child) { border-right: none; border-bottom: 1px solid #efefef; }
  .home-section { padding: 20px 16px; }
}

/* ── FOOTER ── */
.rg-footer {
  border-top: 1px solid #efefef;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rg-footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 15px; color: #ccc; letter-spacing: 1px; }
.rg-footer-copy { font-size: 12px; color: #ccc; }

/* ── FICHE JEU HERO ── */
.fg-hero {
  background: #f0fdfa;
  border-bottom: 1px solid #ccfbf1;
  padding: 32px 32px 0;
  display: flex;
  gap: 28px;
  align-items: flex-end;
}
.fg-cover {
  width: 190px;
  flex-shrink: 0;
  background: #ccfbf1;
  border-radius: 10px 10px 0 0;
  aspect-ratio: 3/4;
  position: relative;          /* toujours en relative pour que img et zoom s'y ancrent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #99f6e4;
  border-bottom: none;
  overflow: hidden;
}
/* L'image remplit tout le container sans dépendre du flex */
.fg-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}
.fg-cover i { font-size: 44px; color: #0d9488; }
/* Masquer icône et label quand l'image est présente et valide */
.fg-cover-clickable:not(.fg-cover-noimg) > i,
.fg-cover-clickable:not(.fg-cover-noimg) > .fg-cover-lbl { visibility: hidden; }
/* Sur erreur : retirer le style clickable et le curseur zoom */
.fg-cover-noimg { cursor: default; }
.fg-cover-noimg .fg-cover-zoom { display: none; }

/* Pochette cliquable */
.fg-cover-clickable { cursor: zoom-in; }
.fg-cover-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
  transition: background 0.18s;
}
.fg-cover-zoom i {
  font-size: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.fg-cover-clickable:hover .fg-cover-zoom { background: rgba(0,0,0,0.28); }
.fg-cover-clickable:hover .fg-cover-zoom i { opacity: 1; }
.fg-cover-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0d9488;
  text-align: center;
  padding: 0 12px;
  line-height: 1.5;
}
.fg-hero-text { flex: 1; padding-bottom: 24px; }
.fg-platform-tag {
  display: inline-block;
  background: #0d9488;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.fg-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  letter-spacing: 1px;
  line-height: 0.92;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.fg-subtitle { font-size: 14px; color: #999; margin-bottom: 18px; }
.fg-score-row { display: flex; align-items: center; gap: 16px; }
.fg-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: #0d9488;
  letter-spacing: 1px;
  line-height: 1;
}
.fg-stars { color: #0d9488; font-size: 18px; letter-spacing: 3px; display: block; }
.fg-vote-count { font-size: 12px; color: #bbb; margin-top: 4px; }
.fg-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
  flex-shrink: 0;
  align-self: flex-end;
}
.fg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
  min-width: 130px;
}
.fg-btn-primary { background: #0d9488; color: #fff; border-color: #0d9488; }
.fg-btn-primary:hover { opacity: 0.9; }
.fg-btn-secondary { background: #fff; color: #1a1a1a; border-color: #e8e8e8; }
.fg-btn-secondary:hover { border-color: #0d9488; color: #0d9488; }
.fg-btn-edit { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.fg-btn-edit:hover { background: #ffedd5; border-color: #ea580c; }

/* ── FICHE JEU BODY ── */
.fg-body {
  display: grid;
  grid-template-columns: 1fr 240px;
}
.fg-main { padding: 28px 32px; border-right: 1px solid #efefef; }
.fg-sidebar { padding: 28px 24px; }

/* Tags */
.fg-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.fg-tag { border-radius: 5px; padding: 5px 11px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
.fg-tag-genre  { background: #f0fdfa; color: #0f766e; border: 1px solid #ccfbf1; }
.fg-tag-misc   { background: #f5f5f5; color: #555;    border: 1px solid #eee; }
.fg-tag-region { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }

.fg-sec-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #efefef;
}
.fg-desc { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 12px; }
.fg-desc:last-of-type { margin-bottom: 28px; }

/* Screenshots */
.fg-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.fg-screenshots-2col {
  grid-template-columns: repeat(2, 1fr);
}
.fg-shot-empty { cursor: default; }
.fg-shot[data-src] { cursor: zoom-in; }
.fg-shot {
  background: #f5f5f5;
  border: 1px solid #efefef;
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
  overflow: hidden;
}
.fg-shot:hover { border-color: #0d9488; }
.fg-shot img { width: 100%; height: 100%; object-fit: cover; }
.fg-shot i { font-size: 26px; color: #ddd; }

/* Video placeholder */
.fg-video-placeholder {
  background: #f5f5f5;
  border: 1px solid #efefef;
  border-radius: 10px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 28px;
  text-decoration: none;
}
.fg-video-placeholder i { font-size: 44px; color: #0d9488; display: block; margin-bottom: 8px; }
.fg-video-placeholder span { font-size: 13px; color: #999; }
.fg-video-inner { text-align: center; }

/* Sidebar fiche technique */
.fg-info-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 14px;
}
.fg-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f5;
}
.fg-info-list .fg-info-row:last-child { border-bottom: none; }
.fg-info-key { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #bbb; }
.fg-info-val { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.fg-info-val.accent { color: #0d9488; }
.fg-info-val.blue   { color: #3b82f6; }
.fg-divider { border: none; border-top: 1px solid #efefef; margin: 22px 0; }

/* Related games */
.fg-related { display: flex; flex-direction: column; gap: 8px; }
.fg-rel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #efefef;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}
.fg-rel-item:hover { border-color: #0d9488; }
.fg-rel-thumb {
  width: 34px; height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.fg-rel-name { font-size: 12px; font-weight: 600; color: #1a1a1a; flex: 1; }
.fg-rel-score { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: #0d9488; }

/* Rating block */
.fg-rate-block {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 22px;
  text-align: center;
}
.fg-rate-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f766e;
  margin-bottom: 10px;
}
.fg-stars-input { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.fg-stars-input i {
  font-size: 26px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}
.fg-stars-input i.active,
.fg-stars-input i:hover { color: #0d9488; transform: scale(1.1); }
.fg-rate-msg { font-size: 12px; color: #0f766e; margin-top: 8px; display: none; }
.fg-voted-msg { font-size: 12px; color: #6b7280; margin-top: 6px; }

/* ── CONSOLE PAGE ── */
.console-header {
  padding: 28px 32px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.console-header { position: relative; overflow: hidden; }

.console-header-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 16px 16px 16px 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.console-header-photo img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
  opacity: 0.9;
}
.console-header-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  align-self: center;
  position: relative; z-index: 1;
}
.console-header-body { flex: 1; min-width: 0; padding-right: 52%; position: relative; z-index: 1; }
.console-header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 4px;
}
.console-header-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-top: 10px;
  max-width: 640px;
}
.console-header-meta { font-size: 13px; color: #999; }

.console-toolbar {
  padding: 14px 32px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 12px;
}
.console-toolbar label { font-size: 12px; font-weight: 500; color: #999; }
.console-toolbar select {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  outline: none;
}
.console-toolbar select:focus { border-color: #0d9488; }

.console-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 32px;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-bottom: 1px solid #efefef;
  background: #fafafa;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filter-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-label i { font-size: 11px; }
.filter-select {
  padding: 7px 10px;
  border: 1px solid #eee;
  border-radius: 7px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  min-width: 130px;
}
.filter-select:focus { border-color: #0d9488; }
.filter-reset {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #ef4444;
  text-decoration: none;
  background: #fef2f2;
  align-self: flex-end;
  transition: background 0.12s;
  white-space: nowrap;
}
.filter-reset:hover { background: #fecaca; }
.filter-count {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #bbb;
  align-self: flex-end;
  padding-bottom: 1px;
  white-space: nowrap;
}

/* ── SEARCH PAGE ── */
.search-header {
  padding: 24px 32px;
  border-bottom: 1px solid #efefef;
}
.search-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.search-header p { font-size: 13px; color: #999; }
.search-results { padding: 24px 32px; }
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.search-empty {
  padding: 60px 32px;
  text-align: center;
  color: #bbb;
}
.search-empty i { font-size: 48px; display: block; margin-bottom: 16px; }
.search-empty p { font-size: 14px; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
}
.page-btn {
  display: inline-block;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #efefef;
  border-radius: 6px;
  color: #1a1a1a;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.page-btn:hover { border-color: #0d9488; color: #0d9488; }
.page-btn.active { background: #0d9488; color: #fff; border-color: #0d9488; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

/* ── Tablette (≤ 1024px) ── */
@media (max-width: 1024px) {
  .rg-games-grid,
  .console-games-grid,
  .search-results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .rg-consoles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .fg-body { grid-template-columns: 1fr 210px; }

  .rg-hero { padding: 28px 24px 24px; }
  .rg-body { padding: 20px 24px; }
  .fg-main { padding: 22px 24px; }
  .fg-sidebar { padding: 22px 16px; }
  .console-games-grid { padding: 20px 24px; }
  .search-header,
  .search-results { padding-left: 24px; padding-right: 24px; }
  .console-header,
  .console-toolbar { padding-left: 24px; padding-right: 24px; }
  .rg-nav { padding: 0 24px; }
  .rg-footer { padding: 14px 24px; }
}

/* ── Grande tablette / petit laptop (≤ 860px) ── */
@media (max-width: 860px) {
  /* Le hamburger remplace les liens inline */
  .rg-nav-toggle { display: inline-flex; }
  .rg-nav-links { display: none; }

  /* Menu déroulant : sticky juste sous la barre de nav */
  .rg-mobile-menu {
    position: sticky;
    top: 56px; /* hauteur exacte de .rg-nav */
    z-index: 99;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #efefef;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  }
  .rg-mobile-menu.open { display: flex; }
  .rg-mobile-menu a {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.12s, background 0.12s;
  }
  .rg-mobile-menu a:last-child { border-bottom: none; }
  .rg-mobile-menu a:hover { color: #0d9488; background: #f9fffe; }
  .rg-mobile-menu a.active { color: #0d9488; font-weight: 600; }

  .rg-search input { width: 140px; }

  .rg-games-grid,
  .console-games-grid,
  .search-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .rg-consoles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fg-title { font-size: 48px; }

  .fg-body { grid-template-columns: 1fr 200px; }
}

/* ── Mobile large (≤ 640px) ── */
@media (max-width: 640px) {
  .filter-bar { padding: 12px 16px; gap: 8px; }
  .filter-select { min-width: 0; width: 100%; }
  .filter-group { width: calc(50% - 4px); }
  .filter-count { margin-left: 0; width: 100%; text-align: right; }
}
/* ── Mobile large (≤ 640px) ── */
@media (max-width: 640px) {
  /* Nav : logo + recherche sur une ligne, breadcrumb en dessous */
  .rg-nav { padding: 8px 16px; height: auto; gap: 8px 12px; flex-wrap: wrap; }
  .rg-search { padding: 6px 10px; }
  .rg-search input { width: 110px; }
  .rg-breadcrumb-bar { padding: 7px 16px; font-size: 11px; gap: 4px; }
  .rg-footer { padding: 12px 16px; flex-direction: column; gap: 4px; text-align: center; }

  /* Hero homepage */
  .rg-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 16px 20px;
  }
  .rg-hero-h1 { font-size: 52px; }
  .rg-stats { gap: 20px; }
  .rg-stat-n { font-size: 32px; }

  /* Carte « Jeu du moment » : compacte + titre sur 2 lignes */
  .random-game-card { gap: 12px; padding: 14px; }
  .random-game-cover { width: 72px; }
  .random-game-title {
    font-size: 19px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .random-game-desc { -webkit-line-clamp: 2; }

  /* Platform strip */
  .rg-plat { padding: 10px 14px; }

  /* Body */
  .rg-body { padding: 16px; }
  .rg-section-head { margin-bottom: 14px; }

  /* Games grid : 2 colonnes */
  .rg-games-grid,
  .console-games-grid,
  .search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* Consoles grid : 2 colonnes */
  .rg-consoles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rg-console-card { padding: 10px 12px; gap: 8px; }
  .rg-console-name { font-size: 12px; }

  /* Console page : la photo géante masquerait les infos, on la cache */
  .console-header { padding: 18px 16px; gap: 12px; }
  .console-header-title { font-size: 26px; }
  .console-header-icon { width: 40px; height: 40px; font-size: 20px; }
  .console-header-photo { display: none; }
  .console-header-body { padding-right: 0; }
  .console-toolbar { padding: 10px 16px; }
  .console-games-grid { padding: 16px; }

  /* Search */
  .search-header { padding: 16px; }
  .search-results { padding: 16px; }

  /* Fiche jeu hero : empilé */
  .fg-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px 0;
    gap: 16px;
  }
  .fg-cover {
    width: 100%;
    max-width: 160px;
    align-self: center;
    border-radius: 10px;
    border-bottom: 1px solid #99f6e4;
    aspect-ratio: 3/4;
  }
  .fg-hero-text { padding-bottom: 0; }
  .fg-title { font-size: 40px; }
  .fg-score { font-size: 44px; }
  .fg-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 16px;
    align-self: auto;
    gap: 8px;
  }
  .fg-btn { min-width: 0; flex: 1; font-size: 12px; padding: 9px 12px; }

  /* Fiche jeu body : colonne unique */
  .fg-body { grid-template-columns: 1fr; }
  .fg-main { padding: 16px; border-right: none; border-bottom: 1px solid #efefef; }
  .fg-sidebar { padding: 16px; }

  /* Screenshots : 2 colonnes */
  .fg-screenshots { grid-template-columns: repeat(2, 1fr); }

  /* Pagination */
  .pagination { flex-wrap: wrap; gap: 4px; }
  .page-btn { padding: 6px 10px; font-size: 12px; }
}

/* ── Très petit mobile (≤ 380px) ── */
@media (max-width: 380px) {
  .rg-search { display: none; }
  .rg-hero-h1 { font-size: 42px; }
  .rg-games-grid,
  .console-games-grid,
  .search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  /* Évite tout décalage causé par un ancêtre flex/transform */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: min(90vw, 90%);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: auto;
  object-fit: contain;
  /* Pixels nets pour les screenshots rétro basse résolution */
  image-rendering: pixelated;
  image-rendering: crisp-edges; /* Firefox */
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ── PAGE CONSOLES ── */
.consoles-page-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.consoles-page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 1px;
  line-height: 1;
  color: #1a1a1a;
}
.consoles-page-title em { color: #0d9488; font-style: normal; }
.consoles-count { font-family: 'DM Mono', monospace; font-size: 13px; color: #bbb; }
.consoles-type-filter {
  display: flex;
  gap: 8px;
  padding: 14px 32px;
  border-bottom: 1px solid #efefef;
  flex-wrap: wrap;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #efefef;
  color: #555;
  transition: all 0.12s;
}
.type-pill:hover { border-color: #0d9488; color: #0d9488; background: #f0fdfa; }
.type-pill.active { background: #0d9488; color: #fff; border-color: #0d9488; }
.type-pill .count { font-family: 'DM Mono', monospace; font-size: 10px; opacity: 0.7; }
.consoles-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #fff;
}
.console-big-card {
  background: #fff;
  text-decoration: none;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
  min-height: 100px;
  box-shadow: 0 0 0 1px #f1f1f1;
}
.console-big-card:hover { background: #fafafa; }
.console-big-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.console-big-info { flex: 1; min-width: 0; z-index: 1; }
.console-big-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 3px;
}
.console-big-meta { font-size: 11px; color: #bbb; margin-bottom: 4px; }
.console-big-count {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #0d9488;
}
.console-big-photo {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 160%;
  max-width: 45%;
  pointer-events: none;
  opacity: 0.85;
}
.console-big-photo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}
.console-big-card:hover .console-big-photo { opacity: 1; }
.console-big-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  margin-bottom: 6px;
}

/* ── PAGE 404 ── */
.e404-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  text-align: center;
}
.e404-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 130px;
  line-height: 1;
  color: #f0f0f0;
  letter-spacing: 4px;
  margin-bottom: 0;
}
.e404-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #1a1a1a;
  margin: 4px 0 12px;
  letter-spacing: .5px;
}
.e404-sub { font-size: 14px; color: #aaa; margin-bottom: 36px; }
.e404-search {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.e404-search:focus-within { border-color: #0d9488; }
.e404-search input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: none;
  outline: none;
  font-family: Inter, sans-serif;
  background: #fff;
  color: #1a1a1a;
}
.e404-search button {
  padding: 12px 18px;
  background: #0d9488;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.e404-search button:hover { background: #0f766e; }
.e404-suggestions {
  border-top: 1px solid #f0f0f0;
  padding: 40px 32px 64px;
  max-width: 860px;
  margin: 0 auto;
}
.e404-suggestions-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .5px;
  color: #1a1a1a;
  margin-bottom: 24px;
}
.e404-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.e404-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0d9488;
  font-weight: 600;
  text-decoration: none;
}
.e404-home:hover { text-decoration: underline; }

/* ── PAGE MENTIONS LÉGALES ── */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.legal-wrap h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
}
.legal-wrap h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal-wrap p, .legal-wrap address {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  font-style: normal;
}
.legal-wrap a { color: #0d9488; text-decoration: underline; text-underline-offset: 2px; }
.legal-sep { border: none; border-top: 1px solid #f0f0f0; margin: 0; }

/* ── PAGE CONTACT ── */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}
.contact-wrap h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.contact-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
  line-height: 1.6;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #efefef;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 12px;
}
.contact-card:hover {
  border-color: #0d9488;
  box-shadow: 0 2px 12px rgba(13,148,136,.08);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0fdfa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #0d9488;
}
.contact-card-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.contact-card-value { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.contact-note {
  margin-top: 36px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
  border-top: 1px solid #f0f0f0;
  padding-top: 24px;
}

/* ── Responsive pages spécifiques ── */
@media (max-width: 860px) {
  .consoles-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .consoles-full-grid { grid-template-columns: 1fr; }
  .consoles-page-header { padding: 20px 16px 16px; }
  .consoles-type-filter { padding: 10px 16px; }
  .e404-grid { grid-template-columns: repeat(2, 1fr); }
  .e404-code  { font-size: 90px; }
  .legal-wrap,
  .contact-wrap { padding: 32px 16px 48px; }
}
@media (max-width: 380px) {
  .e404-grid { grid-template-columns: 1fr; }
}
