* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #121212, #090909 60%);
  color: #eaeaea;
}

/* HERO */
.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 520px;
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: -80px;
  padding: 0 24px;
}

.stat-card {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 28px 36px;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.page-games .games {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  padding: 0; /* Pour coller au style DoBig */
}

/* GAMES GRID */
.games {
  margin-top: 120px;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

.game-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.85);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.game-card:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.25),
    transparent
  );
}

.overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.overlay p {
  font-size: 0.95rem;
  color: #d1d5db;
}

/* LOADING */
.loading {
  background: linear-gradient(
    110deg,
    #121212 8%,
    #1a1a1a 18%,
    #121212 33%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* FOOTER */
footer {
  padding: 40px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

/* CONTACT SECTION */
.contact {
  padding: 100px 24px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02); /* Légère distinction de fond */
}

.contact-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.contact-container h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.contact-container p {
  color: #9ca3af;
  margin-bottom: 40px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: #7c3aed; /* Violet comme tes stats */
  background: #181818;
}

.submit-btn {
  padding: 16px 32px;
  background: #7c3aed;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.submit-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 9, 9, 0.8);
  backdrop-filter: blur(10px);
  
  /* L'entre-deux idéal */
  padding: 20px 0; 
  
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  width: 100%; /* Prend toute la largeur */
  margin: 0; /* Enlève le centrage automatique */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Ajoute juste un petit espace pour que le logo ne touche pas physiquement le bord de l'écran */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 45px; /* Taille intermédiaire pour le logo */
  width: auto;
}

.logo span {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  
  /* --- TAILLE DU TEXTE --- */
  font-size: 15px;      /* Augmente ou diminue ce chiffre selon tes préférences */
  /* ----------------------- */

  font-weight: 500;
  text-transform: uppercase; 
  letter-spacing: 0.15em;    
  transition: opacity 0.3s ease;
  opacity: 0.7;             
}

.nav-links a:hover {
  color: #fff;
}

/* Ajustement du Hero pour ne pas être caché sous la barre */
.hero {
  padding-top: 120px;
}

/* Ajout du défilement doux */
html {
  scroll-behavior: smooth;
}

.games-title, 
.contact-container h2 {
  /* clamp permet au titre de rétrécir sur mobile et grossir sur PC */
  font-size: clamp(2rem, 4vw, 3rem); 
  
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* --- CONFIGURATION GLOBALE PAGE GAMES --- */

.page-games {
  background-color: #050505; /* Noir plus profond */
}

/* Navbar Style Studio */
.page-games .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-games .logo img {
  height: 45px; /* On agrandit le logo par rapport à ta capture */
  width: auto;
}

.page-games .logo span {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Titre Principal */
.page-games .games-hero {
  padding: 200px 20px 60px;
  text-align: center;
}

.page-games .games-hero h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: #ffffff;
}

.page-games .games-hero p {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 10px;
}

/* Grille de jeux style DoBig */
.games-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.page-games .games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
}

.page-games .game-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 4px; /* Bordures quasi carrées pour le look pro */
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.page-games .game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-games .game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.8s ease, opacity 0.5s ease;
}

.page-games .game-card:hover img {
  opacity: 1;
  transform: scale(1.05); /* Effet de zoom lent */
}

/* Infos sur les jeux (Stats) */
.page-games .game-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.page-games .game-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.page-games .game-card .stats {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* Lien Actif dans la Nav */
.nav-links a.active {
  opacity: 1;
  border-bottom: 2px solid #ffffff;
}

/* Le conteneur "Embed" */
.page-games .game-card {
  background: #111111; /* Fond du bloc */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Aligne image et texte verticalement */
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: auto;
}

/* Forcer l'image en format CARRE */
.game-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1; /* Ratio 1:1 pour le carré */
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zone d'information en dessous */
.game-info {
  padding: 20px;
  background: #111111;
}

.game-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Ligne des statistiques séparées */
.stats-row {
  display: flex;
  flex-direction: column; /* Les mettre l'un sous l'autre pour plus de clarté */
  gap: 5px;
}

.stat-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5); /* Couleur plus discrète */
}

/* Effet au survol du bloc entier */
.page-games .game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-games .game-card:hover .game-thumbnail img {
  transform: scale(1.05);
}