/* 1. Correction : Ajout de l'astérisque pour le reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #74A0E3;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Navbar */
.navbar {/* On remplace la couleur par l'image */
  background-image: url('../fondMario.jpg') !important;
  
  /* On assure que l'image couvre toute la zone et reste centrée */
 /* 1. On empêche l'image de s'étirer */
  background-size: auto; 
  
  /* 2. On l'autorise à se répéter horizontalement et verticalement */
  background-repeat: repeat;

  /* On garde vos styles existants */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid #c92a2a;
  align-items: center;
  
 
  min-height: 80px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: rgb(0, 0, 0) !important;
  
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
  color: rgb(255, 0, 0) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.nav-link:hover {
  color: #000000 !important;
  transform: scale(1.05);
}

.nav-link.active {
  color: #000000 !important;
  border-bottom: 3px solid #000000;
}

/* Formulaire de recherche */
form.d-flex {
  width: 100%;
  max-width: 450px;
  margin: 30px 0 40px 0;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  gap: 10px;
}

form.d-flex input {
  border: 2px solid #667eea !important;
  border-radius: 10px;
  padding: 12px 15px !important;
  font-size: 1rem;
  transition: all 0.3s ease;
}

form.d-flex input:focus {
  border-color: #764ba2 !important;
  box-shadow: 0 0 10px rgba(118, 75, 162, 0.3) !important;
}

form.d-flex button {
  background-color : #FBD000 !important;
  border: none !important;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 25px !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

form.d-flex button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Conteneur de jeux */
.game-container {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.game-container > * {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 2. Correction : Ajout du point-virgule après 90% */
@media screen and (min-width: 1400px) {
  .game-container {
     width : 90%;
  }
}

/* Formulaire de recherche - Nouveau style */
.search-form {
  width: 100%;
  max-width: 500px;
  margin: 30px 0 20px 0;
}

.search-wrapper {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-input {
  border: 2px solid #667eea !important;
  border-radius: 10px;
  padding: 12px 15px !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex: 1;
}

.search-input:focus {
  border-color: #764ba2 !important;
  box-shadow: 0 0 10px rgba(118, 75, 162, 0.3) !important;
}

.btn-search {
  background: linear-gradient(75deg,white 0%, #FBD000 30%, #E52521 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Panneau de filtres */
.filters-container {
  width: 100%;
  max-width: 500px;
  margin: 10px 0 30px 0;
}

.filter-toggle {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Le bouton au repos */
.btn-nintendo {
    background-color: white !important;
    color: #ffcc00 !important; /* Un jaune vif style Mario */
    border: 2px solid #ffcc00 !important;
    border-radius: 8px;
    padding: 5px 15px;
    transition: all 0.3s ease; /* Pour que l'effet soit fluide */
    text-transform: uppercase;
}

/* L'effet au survol (hover) */
.btn-nintendo:hover {
    background-color: #ffcc00 !important; /* Le fond devient jaune */
    color: white !important;             /* Le texte devient blanc */
    transform: translateY(-2px);         /* Le bouton se soulève un peu */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style pour le nom de l'utilisateur (optionnel) */
.user-name {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-right: 15px;
}

