/* Accueil éditorial Jeux. La grille de résultats conserve les styles du catalogue. */
.gr-main:has(.gr-catalogue-intro) { padding-block-start: clamp(22px, 3vw, 40px); }
.gr-catalogue-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-block-end: 18px;
}
.gr-catalogue-intro .gr-kicker { margin-block-end: 6px; }
.gr-catalogue-intro h1 { font-size: clamp(26px, 3.2vw, 42px); }
.gr-catalogue-intro p { margin-block-start: 9px; color: var(--gr-muted); font-size: 14px; }
.gr-catalogue-jump,
.gr-catalogue-heading>a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gr-muted);
  font-size: 13px;
  font-weight: 650;
}
.gr-catalogue-jump { flex: none; padding: 8px 0; }
.gr-catalogue-jump svg,
.gr-catalogue-heading>a svg,
.gr-spotlight-link svg { width: 16px; height: 16px; }
.gr-catalogue-intro+.gr-platform-nav { margin-block: 0 8px; padding-block-end: 12px; }

.gr-spotlight { margin-block-end: 32px; }
.gr-spotlight-frame { position: relative; isolation: isolate; }
.gr-spotlight-glow {
  position: absolute;
  inset: 12px 8px -8px;
  z-index: 0;
  pointer-events: none;
  border-radius: 24px;
  opacity: .27;
  filter: blur(28px) saturate(1.4);
}
.gr-spotlight-glow>img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .8s ease;
}
.gr-spotlight-glow>img.is-visible { opacity: 1; }
.gr-spotlight-stage {
  position: relative;
  isolation: isolate;
  z-index: 1;
  height: clamp(430px, 42vw, 520px);
  overflow: hidden;
  border: 1px solid var(--gr-line);
  border-radius: 18px;
  background: #14171b;
}
.gr-spotlight-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  height: 100%;
  min-width: 0;
  padding: clamp(22px, 3vw, 40px) clamp(22px, 4vw, 48px) 72px;
  color: #f8f9fb;
}
.gr-spotlight-slide>img,
.gr-spotlight-slide>picture,
.gr-spotlight-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gr-spotlight-slide>img,
.gr-spotlight-slide>picture { z-index: -2; }
.gr-spotlight-slide>img,
.gr-spotlight-slide>picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.gr-spotlight-slide::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg,#080b10ed 0%,#0d1118bc 38%,#0a0d140d 85%),linear-gradient(0deg,#080b10eb 1%,#080b1000 74%);
}
.gr-spotlight-slide.is-entering { animation: gr-spotlight-reveal .42s ease-out both; }
.gr-spotlight-slide.is-entering>img,
.gr-spotlight-slide.is-entering>picture img { animation: gr-spotlight-image .8s ease-out both; }
@keyframes gr-spotlight-reveal { from { opacity: .48; } to { opacity: 1; } }
@keyframes gr-spotlight-image { from { transform: scale(1.024); } to { transform: scale(1); } }
.gr-spotlight-copy { max-width: min(650px, 66%); }
.gr-spotlight-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 10px;
  color: #f4d8db;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.gr-spotlight-kicker>span { padding: 4px 8px; border-radius: 5px; background: #b92e40; color: #fff; }
.gr-spotlight-copy h2 {
  color: #fff;
  font-size: clamp(28px, 3.7vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.11;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.gr-spotlight-copy h2>a:hover { color: #ffe0e2; }
.gr-spotlight-copy p {
  max-width: 48ch;
  margin-block-start: 10px;
  color: #e0e4eb;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.gr-spotlight-copy .gr-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 12px; }
.gr-spotlight-copy .gr-chip { color: #e3e9ee; background: #0c121bd9; border-color: #ffffff3b; }
.m-game-reviews .gr-spotlight-link {
  margin-block-start: 16px;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 8px;
  background: #f6f7f8;
  color: #171b20;
}
.m-game-reviews .gr-spotlight-link:hover { background: #ffe1e5; color: #171b20; }
.gr-spotlight-controls {
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ffffff37;
  border-radius: 11px;
  background: #101419e8;
  color: #fff;
  backdrop-filter: blur(9px);
}
.gr-spotlight-controls button,
.gr-catalogue-shelf-controls button {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 23px;
  line-height: 1;
}
.gr-spotlight-controls button:hover { background: #ffffff1a; }
.gr-spotlight-controls button[data-gr-spotlight-toggle] { font-size: 14px; }
.gr-spotlight-count { min-width: 4ch; color: #e2e5ea; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.gr-spotlight-progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--gr-red);
  transform: scaleX(0);
  transform-origin: left;
}
.gr-spotlight.is-playing .gr-spotlight-progress { animation: gr-spotlight-progress 5s linear forwards; }
@keyframes gr-spotlight-progress { to { transform: scaleX(1); } }
.gr-catalogue-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.gr-spotlight-stories,
.gr-catalogue-story-row,
.gr-catalogue-game-row {
  --gr-rail-gap: 13px;
  --gr-rail-columns: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gr-rail-columns) - 1) * var(--gr-rail-gap)) / var(--gr-rail-columns));
  gap: var(--gr-rail-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gr-line) transparent;
  scrollbar-width: thin;
  padding-block: 3px 12px;
}
.gr-spotlight-stories { margin-block-start: 13px; }
.gr-spotlight-stories:has(>:nth-child(3):last-child),
.gr-catalogue-story-row:has(>:nth-child(3):last-child) { --gr-rail-columns: 3; }
.gr-spotlight-stories:has(>:nth-child(2):last-child),
.gr-catalogue-story-row:has(>:nth-child(2):last-child) { --gr-rail-columns: 2; }
.gr-spotlight-stories:has(>:only-child),
.gr-catalogue-story-row:has(>:only-child) { --gr-rail-columns: 3; }
.gr-catalogue-story,
.gr-catalogue-game-row>li { min-width: 0; scroll-snap-align: start; }
.gr-catalogue-story>a,
.gr-catalogue-game-row>li>a { display: block; color: var(--gr-text); }
.gr-catalogue-story>a:focus-visible,
.gr-catalogue-game-row>li>a:focus-visible { outline-offset: -2px; }
.gr-catalogue-story-image,
.gr-catalogue-poster {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gr-line);
  border-radius: 11px;
  background: var(--gr-panel-soft);
}
.gr-catalogue-story-image { aspect-ratio: 16 / 9; }
.gr-catalogue-story-image>picture,
.gr-catalogue-poster>picture { display: block; width: 100%; height: 100%; }
.gr-catalogue-story-image img,
.gr-catalogue-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gr-catalogue-story a:hover img,
.gr-catalogue-game-row a:hover img { transform: scale(1.045); }
.gr-catalogue-story-image>span:not(.gr-catalogue-placeholder) {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-start: 9px;
  max-width: calc(100% - 18px);
  padding: 4px 8px;
  border: 1px solid #ffffff39;
  border-radius: 5px;
  background: #151a22ed;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.gr-catalogue-story h3 { margin-block: 8px 2px; font-size: 15px; line-height: 1.35; font-weight: 690; overflow-wrap: anywhere; }
.gr-catalogue-story-date,
.gr-catalogue-game-row>li>a>small { color: var(--gr-muted); font-size: 11px; }
.gr-catalogue-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  background: radial-gradient(ellipse at 20% 12%,var(--gr-red-soft),transparent 75%),var(--gr-panel-soft);
  color: var(--gr-muted);
}
.gr-catalogue-placeholder svg { width: 38px; height: 38px; opacity: .58; }
.gr-catalogue-section { margin-block: 32px; }
.gr-catalogue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 11px; }
.gr-catalogue-heading>:first-child { margin-inline-end: auto; }
.gr-catalogue-heading h2 { margin: 0; font-size: clamp(20px, 2.35vw, 28px); line-height: 1.2; }
.gr-catalogue-heading p { color: var(--gr-muted); font-size: 13px; }
.gr-catalogue-heading>a { flex: none; }
.gr-catalogue-shelf-controls { display: flex; gap: 3px; color: var(--gr-text); }
.gr-catalogue-shelf-controls button { min-width: 38px; min-height: 38px; border-color: var(--gr-line); background: var(--gr-panel); }
.gr-catalogue-shelf-controls button:disabled { opacity: .35; cursor: default; }
.gr-catalogue-shelf-controls button:not(:disabled):hover { border-color: var(--gr-red); }
.gr-catalogue-game-row { --gr-rail-columns: 7; margin: 0; padding-inline: 0; list-style: none; }
.gr-catalogue-poster { aspect-ratio: 3 / 4; }
.gr-catalogue-game-row>li>a>strong { display: block; margin-block: 6px 1px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.gr-catalogue-rank,
.gr-catalogue-rating {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 5px;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  background: #11161aee;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.gr-catalogue-rank { inset-block-start: 8px; inset-inline-start: 8px; }
.gr-catalogue-rating { inset-block-end: 8px; inset-inline-end: 8px; display: flex; gap: 2px; }
.gr-catalogue-rating small { color: #c2c9cf; font-size: 9px; }
.gr-catalogue-results { margin-block-end: 0; }

@media (max-width: 900px) {
  .gr-catalogue-intro { align-items: start; }
  .gr-catalogue-intro h1 { font-size: clamp(24px, 4.25vw, 36px); }
  .gr-catalogue-intro p { font-size: 13px; }
  .gr-spotlight-copy { max-width: 75%; }
  .gr-catalogue-story-row { --gr-rail-columns: 3; }
  .gr-catalogue-game-row { --gr-rail-columns: 5; }
}
@media (max-width: 600px) {
  .gr-catalogue-intro { display: block; margin-block-end: 11px; }
  .gr-catalogue-jump { font-size: 12px; }
  .gr-spotlight { margin-block-end: 23px; }
  .gr-spotlight-stage { height: 440px; border-radius: 13px; }
  .gr-spotlight-slide { padding: 17px 16px 68px; }
  .gr-spotlight-glow { opacity: .2; filter: blur(21px) saturate(1.3); }
  .gr-spotlight-slide::after { background: linear-gradient(0deg,#090c11f7 9%,#090c11c7 54%,#090c110b 100%); }
  .gr-spotlight-copy { max-width: 100%; }
  .gr-spotlight-copy h2 { font-size: clamp(24px, 7.5vw, 36px); }
  .gr-spotlight-copy p { margin-block-start: 9px; font-size: 13px; }
  .gr-spotlight-copy .gr-chip { min-height: 25px; padding: 3px 8px; font-size: 10px; }
  .gr-spotlight-copy .gr-platforms { margin-block-start: 9px; }
  .m-game-reviews .gr-spotlight-link { margin-block-start: 11px; }
  .gr-spotlight-controls { inset-inline-end: 9px; inset-block-end: 9px; }
  .gr-spotlight-stories,
  .gr-catalogue-story-row { --gr-rail-gap: 10px; grid-auto-columns: 70%; }
  .gr-spotlight-stories:has(>:only-child),
  .gr-catalogue-story-row:has(>:only-child) { grid-auto-columns: 100%; }
  .gr-catalogue-game-row { --gr-rail-gap: 10px; --gr-rail-columns: 2.5; }
  .gr-catalogue-section { margin-block: 24px; }
  .gr-catalogue-heading { flex-wrap: wrap; }
  .gr-catalogue-heading>a { font-size: 11px; }
  .gr-catalogue-heading>a svg { width: 13px; height: 13px; }
  .gr-catalogue-shelf-controls button { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-spotlight-slide.is-entering,
  .gr-spotlight-slide.is-entering>img,
  .gr-spotlight-slide.is-entering>picture img,
  .gr-spotlight.is-playing .gr-spotlight-progress { animation: none; }
  .gr-catalogue-story-image img,
  .gr-catalogue-poster img,
  .gr-spotlight-glow>img { transition: none; }
}
[data-theme=light] .gr-spotlight-glow { opacity: .17; }
@media print { .gr-spotlight-glow { display: none; } }
