/* =========================== SECTION ACCUEIL =========================== */

#accueil_container_selectionJeu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajustement fluide */
  width: 100%;
  gap: 1%;
  padding-top: 0;
  margin: 0 auto;
  justify-content: center; /* Centrage horizontal */
  align-items: start;
}


.accueil_section_jeux {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#accueil_section_jeux_title{
  display: flex;
  width: 100%;
  margin-left: 0;
  margin-bottom: 25px;
  padding-left: 2%;
  padding-right: 2%;
}

/* --- Container des jeux --- */
.accueil_container_jeu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  height: 50vh;
  max-height: 900px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--vk_defaultBorder_color);
  background: var(--vk_component_background_default);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
  text-align: center;
  font-size: clamp(0.9rem, 1vw, 1.1rem); /* Ajusté pour être naturel */
  text-decoration: none; /* Enlève le soulignement */
}

.accueil_container_jeu:hover {
  transform: translateY(-40px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- Image du jeu --- */
.accueil_container_jeu img {
  width: 90%;
  height: 22vh;
  max-height: 600px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  border-radius: 50px;
}

.accueil_container_jeu .imgRadius {
  width: 90%;
  height: 22vh;
  max-height: 600px;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  border-radius: 50px;
}


/* Par défaut, masquer l'image dark */
.theme-dark {
    display: none;
}

.acceuil_jeu_titre{
  margin-top: 20px;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--textColor);
}

/* Si le mode dark est activé, on affiche l'image dark et on cache la light */
@media (prefers-color-scheme: dark) {
    .theme-light {
        display: none;
    }
    .theme-dark {
        display: block;
    }
}


/* --- Description du jeu --- */
.accueil_description_jeu {
  width: 90%;
  padding: 10px;
  color: var(--textColor);
  text-align: center;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* =========================== SECTION A PROPOS =========================== */


/* Section À propos */
#about_vandka {
  text-align: center;
  padding: 20px 10px;
  margin-bottom: 20px;
  color: var(--textColor);
}

#about_vandka .container {
  max-width: 800px;
  margin: auto;
}

/* Titre */
#about_vandka h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--vk_orange_color);
}

/* Texte */
#about_vandka p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* =========================== SECTION RESPONSIVE =========================== */

@media (min-width: 1921px) { /* Pour les riches */
  #accueil_container_selectionJeu {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Plus de jeux par ligne */
    width: 100%;
  }
  

  .accueil_container_jeu {
    min-height: 450px;
  }

  .accueil_description_jeu {
    font-size: 1.3rem;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) { /* Default */

}

@media (max-width: 1024px) { /* Tablettes */
  #accueil_container_selectionJeu {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    width: 90%;
  }

  .accueil_container_jeu {
    min-height: 350px;
  }

  #accueil_section_jeux_title{
    width: 80%;
  }
}

@media (max-width: 768px) { /* Mobiles */
  #accueil_container_selectionJeu {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5vh;
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 10vh;
  }

  #acceuil_jeu_titre{
    margin: 0;
  }

  #accueil_section_jeux_title{
    width: 80%;
  }

  .accueil_container_jeu {
    height: fit-content;
    cursor: default;
    pointer-events: none;
  }

  .accueil_container_jeu:hover {
    transform: none;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  }
  

  .accueil_container_jeu img {
    height: 10vh;
  }

  #about_vandka {
    margin-top: none;
    margin-bottom: none;
    padding: 0 0;
  }

  #about_vandka h2 {
    font-size: 1.8rem;
  }
}

