/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  --black: #070508;
  --dark: #120a0c;
  --dark-2: #1a0e11;
  --red: #b3121c;
  --red-dark: #6e0a12;
  --red-glow: rgba(179, 18, 28, 0.55);
  --white: #ffffff;
  --grey: #b9b3b5;
  --green: #a4e024;          /* vert du bouton login / badge */
  --olive: #7c8a3a;          /* bordure vert olive du header scrollé */
  --olive-soft: rgba(124, 138, 58, 0.55);

  --header-h: 92px;
  --header-h-scrolled: 78px;
  --header-side: 40px;

  --font-ui: "Rajdhani", "Segoe UI", sans-serif;
  --font-display: "Genos", "Rajdhani", sans-serif;
  --font-nav: "Genos", "Rajdhani", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Système de rayons : net / moyen / pilule */
  --r-sm: 4px;
  --r-md: 6px;
  --r-pill: 999px;

  /* Rythme vertical */
  --space-section: 88px;
  --space-divider: 44px;

  /* Interlettrage des libellés en capitales */
  --track: 0.1em;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1200px, 100% - 2 * var(--header-side));
  margin-inline: auto;
}

/* Titres : coupures de ligne équilibrées, sans veuves */
h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* =========================================================
   HEADER — ÉTAT 1 (en haut de page)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  height: var(--header-h);
  padding-inline: var(--header-side);

  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  transition:
    top 0.45s var(--ease),
    left 0.45s var(--ease),
    right 0.45s var(--ease),
    height 0.45s var(--ease),
    border-radius 0.45s var(--ease),
    border-color 0.45s var(--ease),
    background 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    padding 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 44px;
}

/* Lisibilité sur la vidéo tant que le header est transparent */
.site-header:not(.scrolled) .main-nav > ul > li > a,
.site-header:not(.scrolled) .icon-btn {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
  transition: height 0.45s var(--ease);
}

/* ---------- Navigation ---------- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 0;
  position: relative;
  transition: color 0.25s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .chevron {
  transition: transform 0.3s var(--ease);
}

.has-dropdown:hover .chevron,
.has-dropdown.open .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 170px;
  padding: 10px 0;
  background: rgba(14, 8, 10, 0.95);
  border: 1px solid var(--olive-soft);
  border-radius: var(--r-md);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.dropdown li a::after {
  display: none;
}

.dropdown li a:hover {
  color: var(--green);
  background: rgba(255, 255, 255, 0.04);
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Actions ---------- */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  transition: color 0.25s, transform 0.25s;
}

.icon-btn:hover {
  color: var(--green);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 15px;
  height: 15px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--green);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.cart-badge.bump {
  animation: badgeBump 0.35s var(--ease);
}

@keyframes badgeBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  margin-left: 4px;
  border: 1.5px solid var(--green);
  border-radius: var(--r-pill);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.login-btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

/* ---------- Recherche extensible ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 0;
  transition: gap 0.3s var(--ease);
}

.search-box.open {
  gap: 10px;
}

.search-form {
  width: 0;
  overflow: hidden;
  transition: width 0.4s var(--ease);
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--olive-soft);
  border-radius: 999px;
  background: rgba(10, 6, 8, 0.6);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  outline: none;
  opacity: 0;
  transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.search-input::placeholder {
  color: var(--grey);
}

.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(164, 224, 36, 0.25);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-box.open .search-form {
  width: 200px;
}

.search-box.open .search-input {
  opacity: 1;
}

.search-box.open .search-toggle {
  color: var(--green);
}

/* Login dans le menu : visible uniquement sur mobile */
.nav-login {
  display: none;
}

/* ---------- Hamburger (caché sur desktop) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HEADER — ÉTAT 2 (après scroll)
   ========================================================= */
.site-header.scrolled {
  top: 14px;
  left: 24px;
  right: 24px;
  height: var(--header-h-scrolled);
  padding-inline: 16px; /* 24 + 16 = 40 : le logo ne bouge pas */

  background: linear-gradient(
    90deg,
    rgba(12, 8, 10, 0.78) 0%,
    rgba(18, 9, 12, 0.70) 60%,
    rgba(30, 10, 14, 0.62) 100%
  );
  border-color: var(--olive);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(124, 138, 58, 0.15) inset;
}

.site-header.scrolled .logo img {
  height: 42px;
}

/* =========================================================
   HERO (slider)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) max(var(--header-side), calc((100% - 1200px) / 2)) 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 6s linear;
}

.hero-slide.active .hero-video {
  transform: scale(1);
}

/* Voile sombre : lisibilité du texte à gauche + fondu en bas */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 8, 0.88) 0%, rgba(7, 5, 8, 0.58) 32%, rgba(7, 5, 8, 0.18) 60%, transparent 100%),
    linear-gradient(180deg, rgba(7, 5, 8, 0.5) 0%, transparent 22%, transparent 70%, var(--black) 100%);
}

.hero-content {
  max-width: 640px;
  transform: translateY(24px);
  transition: transform 0.9s var(--ease) 0.15s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
}

/* Logos des jeux : les PNG contiennent de la transparence,
   on les affiche en largeur et on rogne le vide vertical */
.hero-game-logo {
  display: block;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.logo-elden {
  width: 300px;
  margin-top: -60px;
  margin-bottom: -95px;
  clip-path: inset(40% 0 40% 0);
}

.logo-sniper {
  width: 300px;
  margin-top: 0;
  margin-bottom: 10px;
  clip-path: inset(34% 0 8% 0);
}

.logo-crew {
  width: 300px;
  margin-top: -50px;
  margin-bottom: -70px;
  clip-path: inset(38% 0 32% 0);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Bouton rond "+" */
.btn-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #0a0a0a;
  box-shadow: 0 8px 26px rgba(164, 224, 36, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn-plus:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(164, 224, 36, 0.5);
}

/* Indicateurs du slider */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 2;
}

.hero-dots button {
  display: block;
  width: 22px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s var(--ease), background 0.3s;
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.active {
  width: 60px;
  background: var(--green);
}

/* =========================================================
   LATEST NEWS — cartes
   ========================================================= */
.news {
  padding: var(--space-section) 0 var(--space-divider);
  background: var(--black);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .slash {
  color: var(--green);
  font-weight: 600;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  transition: gap 0.25s var(--ease), color 0.25s;
}

.view-all:hover {
  gap: 12px;
  color: var(--white);
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  background: #121012;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--olive-soft);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

/* Le lien remplit la carte : l'heure reste alignée en bas sur les 3 cartes */
.news-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Image de la carte : l'image (si présente) recouvre un dégradé de repli */
.news-media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  filter: brightness(0.92) saturate(0.95);
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(18, 16, 18, 0.92) 100%);
}

.news-card:hover .news-media {
  transform: scale(1.03);
  filter: brightness(1) saturate(1);
}

.media-1 { background-color: #10202b; background-image: radial-gradient(circle at 70% 30%, #2a6b8a, #0b1a24 60%); }
.media-2 { background-color: #2a1c10; background-image: radial-gradient(circle at 40% 40%, #7a4a20, #1a0f08 65%); }
.media-3 { background-color: #1c1a10; background-image: radial-gradient(circle at 60% 35%, #6b5a2a, #14120a 65%); }

.news-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 20px 18px;
  margin-top: -13px;
}

.news-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--green);
  border-radius: var(--r-sm);
  background: #121012;
  color: var(--green);
  font-family: var(--font-nav);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.news-body h3 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--white);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-time {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* =========================================================
   FEATURED GAMES
   ========================================================= */
.games {
  padding: var(--space-divider) 0 var(--space-section);
  background: var(--black);
}

.games-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  min-width: 0;
  background: #121012;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  padding: 8px 8px 10px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--olive-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Jaquette : image de fond (si présente) au-dessus d'un dégradé de repli */
.game-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1418;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 0;
}

.game-meta h3 {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-score {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid var(--green);
  border-radius: var(--r-sm);
  color: var(--green);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
}

.btn-add {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #0a0a0a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.game-card:hover .btn-add,
.game-card:focus-within .btn-add {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   PLATEFORMES — logos en défilement horizontal infini
   ========================================================= */
.platforms {
  position: relative;
  padding: var(--space-divider) 0;
  overflow: hidden;
  background: var(--black);
  /* fondu sur les bords */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.platforms-track {
  display: flex;
  width: max-content;
  animation: platformsScroll 40s linear infinite;
}

.platforms:hover .platforms-track {
  animation-play-state: paused;
}

.platforms-list {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 130px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.platform:hover {
  color: var(--white);
  transform: translateY(-4px);
}

.platform-icon {
  display: block;
  width: 56px;
  height: 56px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.platform-name {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@keyframes platformsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: #0a0a0a;
  border-radius: 4px;
  height: 44px;
  padding: 0 28px;
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  box-shadow: 0 8px 26px rgba(164, 224, 36, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(164, 224, 36, 0.5);
}

.btn-ghost {
  border: 1.5px solid var(--olive);
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: none;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  border: 1.5px solid var(--green);
  color: var(--green);
}

.btn-small:hover {
  background: var(--green);
  color: #0a0a0a;
}

/* =========================================================
   SECTIONS DE CONTENU
   ========================================================= */
.section {
  padding: var(--space-section) 0;
}

.section-alt {
  background: linear-gradient(180deg, #0a0608, #130b0e 50%, #0a0608);
}

.lead {
  max-width: 640px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--grey);
  margin-bottom: 32px;
}



/* ---------- Community : image de fond ---------- */
.community {
  position: relative;
  isolation: isolate;
  background: url("../images/community.png") center / cover no-repeat, var(--black);
}

.community::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 5, 8, 0.92) 0%, rgba(7, 5, 8, 0.75) 45%, rgba(7, 5, 8, 0.3) 100%),
    linear-gradient(180deg, var(--black) 0%, transparent 18%, transparent 82%, var(--black) 100%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablette ---- */
@media (max-width: 1024px) {
  :root {
    --header-side: 28px;
  }

  .header-inner {
    gap: 28px;
  }

  .main-nav ul {
    gap: 20px;
  }

  .main-nav a {
    font-size: 17px;
  }

  .header-actions {
    gap: 16px;
  }

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

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

/* ---- Mobile / petite tablette : menu hamburger ---- */
@media (max-width: 860px) {
  :root {
    --header-h: 76px;
    --header-h-scrolled: 66px;
    --header-side: 20px;
  }

  .logo img {
    height: 38px;
  }

  .site-header.scrolled {
    top: 10px;
    left: 12px;
    right: 12px;
    padding-inline: 8px; /* 12 + 8 = 20 : aligné avec l'état initial */
  }

  .site-header.scrolled .logo img {
    height: 34px;
  }

  .hamburger {
    display: flex;
  }

  /* Login quitte la barre et rejoint le menu */
  .header-actions > .login-btn {
    display: none;
  }

  .nav-login {
    display: block;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-login .login-btn {
    display: inline-flex;
    color: var(--green);
    width: 100%;
    height: 40px;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 0;
    justify-content: center;
  }

  .nav-login .login-btn::after {
    display: none;
  }

  .nav-login .login-btn:hover {
    color: var(--white);
  }

  /* Recherche ouverte sur mobile : seuls le logo, le champ et le menu restent */
  .header-actions:has(.search-box.open) {
    flex: 1;
  }

  .header-actions:has(.search-box.open) .search-box {
    flex: 1;
    min-width: 0;
  }

  .search-box.open .search-form {
    flex: 1;
    width: auto;
  }

  .header-actions:has(.search-box.open) .icon-btn:not(.search-toggle),
  .header-actions:has(.search-box.open) .login-btn {
    display: none;
  }

  .header-actions {
    gap: 20px;
  }

  .login-btn {
    height: 28px;
    padding: 0 12px;
    font-size: 11px;
  }

  /* Panneau de navigation mobile : accroché sous le header
     (le header, avec son backdrop-filter, sert de bloc conteneur) */
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, 86vw);
    max-height: calc(100vh - var(--header-h) - 30px);
    overflow-y: auto;
    padding: 22px 28px 26px;
    background: rgba(10, 6, 8, 0.96);
    border: 1px solid var(--olive-soft);
    border-radius: var(--r-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    z-index: 1;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  /* Le panneau reste aligné avec la marge intérieure de la pilule */
  .site-header.scrolled .main-nav {
    right: 12px;
    top: calc(100% + 6px);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .main-nav > ul > li {
    width: 100%;
  }

  .main-nav a {
    font-size: 20px;
    padding: 11px 0;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav a::after {
    display: none;
  }

  /* Dropdown mobile : en accordéon */
  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--olive-soft);
    border-radius: 0;
    backdrop-filter: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.4s var(--ease);
  }

  .has-dropdown:hover .dropdown {
    max-height: 0;
  }

  .has-dropdown.open .dropdown {
    max-height: 260px;
  }

  .dropdown li a {
    font-size: 15px;
    padding: 8px 0 8px 12px;
  }

  /* Overlay sombre derrière le menu */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 900;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Sur mobile : contenu ancré en bas, juste au-dessus des points */
  .hero-slide {
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 120px;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-dots {
    bottom: 26px;
  }

  /* Voile plus fort en bas pour la lisibilité */
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 5, 8, 0.6) 0%, rgba(7, 5, 8, 0.3) 60%, rgba(7, 5, 8, 0.15) 100%),
      linear-gradient(180deg, rgba(7, 5, 8, 0.3) 0%, transparent 25%, rgba(7, 5, 8, 0.55) 60%, rgba(7, 5, 8, 0.95) 100%);
  }

  .hero-text {
    font-size: 16px;
  }

  .logo-elden {
    width: 220px;
    margin-top: -80px;
    margin-bottom: -70px;
  }

  .logo-sniper {
    width: 220px;
    margin-top: -36px;
    margin-bottom: 6px;
  }

  .logo-crew {
    width: 220px;
    margin-top: -40px;
    margin-bottom: -50px;
  }

  .hero-video {
    object-position: 70% center;
  }

  .news {
    padding: 64px 0 28px;
  }

  /* Cartes en défilement horizontal avec accroche (snap) */
  .news-cards,
  .games-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--header-side);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px var(--header-side) 12px;
    margin-inline: calc(-1 * var(--header-side));
  }

  .news-cards::-webkit-scrollbar,
  .games-row::-webkit-scrollbar {
    display: none;
  }

  .news-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .game-card {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }

  .games {
    padding: 28px 0 64px;
  }

  .game-meta h3 {
    font-size: 14px;
  }

  /* Sur tactile, le bouton d'ajout est toujours visible */
  .btn-add {
    opacity: 1;
    transform: none;
    width: 28px;
    height: 28px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 22px;
    white-space: nowrap;
  }

  .section {
    padding: 64px 0;
  }

  .view-all {
    font-size: 12px;
    white-space: nowrap;
  }

  .platforms {
    padding: 28px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .platforms-list {
    gap: 44px;
    padding-right: 44px;
  }

  .platform {
    min-width: 100px;
  }

  .platform-icon {
    width: 44px;
    height: 44px;
  }

  .platform-name {
    font-size: 13px;
  }

  .platforms-track {
    animation-duration: 28s;
  }
}

/* ---- Très petit écran ---- */
@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 16px;
  }

  .login-btn {
    height: 26px;
    padding: 0 10px;
    font-size: 10px;
    margin-left: 0;
  }

  .logo img {
    height: 32px;
  }
}

/* ---- Accessibilité : réduire les animations ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   TOP RATED — carrousel automatique (4 cartes, 5 s)
   ========================================================= */
.top-rated {
  padding-top: 0;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  color: var(--white);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.top-btn:hover {
  color: var(--green);
  border-color: var(--olive-soft);
  background: rgba(255, 255, 255, 0.04);
}

.top-viewport {
  --per: 5.5;
  --gap: 18px;
  overflow: hidden;
  /* marge pour l'élévation au survol */
  margin: -6px;
  padding: 6px;
}

.top-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.top-track.no-anim {
  transition: none;
}

.top-track .game-card {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
}

.top-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-sm);
  background: var(--green);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .top-viewport { --per: 3.5; }
}

@media (max-width: 860px) {
  .top-viewport { --per: 2.5; --gap: 14px; }
  .top-rated { padding-top: 0; }
}

/* =========================================================
   CHIFFRES CLÉS — bandeau sous Top Rated
   ========================================================= */
.stats-strip {
  padding: 0 0 var(--space-section);
}

.stats-list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--green);
}

.stat-icon svg {
  width: 40px;
  height: 40px;
}

.stat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.stat-text strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
}

.stat-text small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--grey);
  margin-top: 3px;
}

@media (max-width: 860px) {
  .stats-strip {
    padding-bottom: 64px;
  }

  .stats-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .stat-icon svg {
    width: 32px;
    height: 32px;
  }

  .stat-text strong {
    font-size: 22px;
  }
}

/* =========================================================
   AVIS — What Our Players Say (premium)
   ========================================================= */
.reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* lueur olive diffuse derrière les cartes */
.reviews::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 138, 58, 0.16), transparent 65%);
  pointer-events: none;
}

.reviews-head {
  align-items: flex-end;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--grey);
}

.reviews-summary strong {
  color: var(--white);
  font-weight: 700;
}

.reviews-summary-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--green);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 28px 26px;
  border-radius: var(--r-md);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 60%),
    rgba(14, 10, 12, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: var(--olive-soft);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--green);
  filter: drop-shadow(0 0 6px rgba(164, 224, 36, 0.45));
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(164, 224, 36, 0.3);
  background: rgba(164, 224, 36, 0.08);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-quote {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--white);
}

.review-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* avatar : anneau dégradé */
.review-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--olive));
}

.review-avatar span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #15111a;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.review-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.review-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}

.review-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .reviews-head {
    align-items: flex-start;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .review-card {
    padding: 24px 20px 22px;
  }

}

/* =========================================================
   ABOUT — image de fond + texte + chiffres
   ========================================================= */
.about {
  position: relative;
  isolation: isolate;
  background: url("../images/about.png") center / cover no-repeat, var(--black);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 5, 8, 0.94) 0%, rgba(7, 5, 8, 0.8) 50%, rgba(7, 5, 8, 0.45) 100%),
    linear-gradient(180deg, var(--black) 0%, transparent 18%, transparent 82%, var(--black) 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.about-copy .lead {
  max-width: 600px;
  margin-bottom: 16px;
}

.about-points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 24px 0 30px;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--white);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(164, 224, 36, 0.15) center / 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23a4e024' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-stats div {
  padding: 24px 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 10, 12, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-stats dt {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  letter-spacing: 0.03em;
}

.about-stats dd {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .about::before {
    background:
      linear-gradient(180deg, rgba(7, 5, 8, 0.92), rgba(7, 5, 8, 0.85)),
      linear-gradient(180deg, var(--black) 0%, transparent 15%, transparent 85%, var(--black) 100%);
  }

  .about-stats dt {
    font-size: 28px;
  }

  .about-stats div {
    padding: 18px 16px;
  }

  .about-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #08060a;
  color: var(--grey);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-about {
  max-width: 320px;
  margin: 18px 0 22px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--green);
  border-color: var(--olive-soft);
  background: rgba(124, 138, 58, 0.12);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--grey);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--green);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 22px;
}

.footer-legal a {
  color: var(--grey);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--green);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    padding-bottom: 30px;
  }

  .footer-col ul {
    gap: 9px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   MICRO-INTERACTIONS — subtiles, rapides, premium
   ========================================================= */
/* Boutons : pression */
.btn:active,
.btn-add:active,
.btn-plus:active,
.icon-btn:active,
.top-btn:active,
.footer-social a:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* Focus clavier visible et cohérent */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Jaquettes : léger zoom + éclaircissement */
.game-cover {
  transition: transform 0.45s var(--ease), filter 0.45s;
  filter: brightness(0.96);
}

.game-card:hover .game-cover,
.game-card:focus-within .game-cover {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.game-meta h3 {
  transition: color 0.2s;
}

.game-card:hover .game-meta h3 {
  color: var(--green);
}

/* Actualités : titre réagit au survol de la carte */
.news-card h3 {
  transition: color 0.2s;
}

.news-card:hover h3 {
  color: var(--green);
}

/* Navigation : sous-menu glisse doucement */
.dropdown li a {
  transition: color 0.2s, background 0.2s, padding-left 0.2s var(--ease);
}

.dropdown li a:hover {
  padding-left: 20px;
}

.icon-btn svg,
.top-btn svg,
.view-all svg {
  transition: transform 0.25s var(--ease);
}

.icon-btn:hover svg {
  transform: translateY(-1px) scale(1.06);
}

.view-all:hover svg {
  transform: translateX(3px);
}

#topPrev:hover svg { transform: translateX(-2px); }
#topNext:hover svg { transform: translateX(2px); }

/* Points du slider : accroche au survol */
.hero-dots button {
  transition: background 0.25s, transform 0.25s var(--ease), width 0.3s var(--ease);
}

.hero-dots button:hover {
  transform: scale(1.25);
}

/* Contenu du hero : entrée en cascade (titre, texte, boutons) */
.hero-content > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero-slide.active .hero-content > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.active .hero-content > :nth-child(1) { transition-delay: 0.2s; }
.hero-slide.active .hero-content > :nth-child(2) { transition-delay: 0.3s; }
.hero-slide.active .hero-content > :nth-child(3) { transition-delay: 0.4s; }
.hero-slide.active .hero-content > :nth-child(4) { transition-delay: 0.5s; }

/* Tuiles About : relief léger */
.about-stats div {
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.about-stats div:hover {
  border-color: var(--olive-soft);
  transform: translateY(-2px);
}

/* Avatar avis : anneau s'éclaire */
.review-avatar {
  transition: transform 0.3s var(--ease);
}

.review-card:hover .review-avatar {
  transform: scale(1.05);
}

/* Tactile : pas d'élévation au "hover" fantôme */
@media (hover: none) {
  .game-card:hover,
  .news-card:hover,
  .review-card:hover,
  .product:hover,
  .about-stats div:hover,
  .btn:hover {
    transform: none;
  }

  .game-card:hover .game-cover {
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE — ajustements des nouvelles sections
   ========================================================= */
/* Résumé des avis : texte fluide, étoiles alignées */
.reviews-summary {
  display: block;
}

.reviews-summary-stars {
  vertical-align: -2px;
  margin-right: 4px;
}

@media (max-width: 860px) {
  .reviews-head {
    flex-wrap: wrap;
  }

  .reviews-head > div {
    flex: 1 1 100%;
  }

  .reviews-summary {
    font-size: 13px;
  }

  .section-head .view-all {
    flex: 0 0 auto;
  }

  .top-rated .section-head {
    margin-bottom: 14px;
  }
}

@media (max-width: 420px) {
  .about-stats {
    gap: 10px;
  }
}

/* =========================================================
   AVIS — slider (tablette / mobile) : une carte à la fois
   ========================================================= */
@media (max-width: 1024px) {
  .reviews .container {
    overflow: hidden;
  }

  .reviews-grid {
    --per: 2;
    --gap: 16px;
    display: flex;
    gap: var(--gap);
    transition: transform 0.7s var(--ease);
    will-change: transform;
  }

  .reviews-grid.no-anim {
    transition: none;
  }

  .review-card {
    flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .reviews-grid {
    --per: 1;
    --gap: 14px;
  }
}

/* Chiffres clés : les quatre sur une seule ligne, même sur mobile */
@media (max-width: 860px) {
  .stats-list {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .stat {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    min-width: 0;
  }

  .stat-text {
    align-items: center;
  }

  .stat-icon svg {
    width: 26px;
    height: 26px;
  }

  .stat-text strong {
    font-size: 18px;
  }

  .stat-text small {
    font-size: 11px;
    letter-spacing: 0;
  }
}
}
