@import url(sections/box.css);
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url(sections/header.css);
@import url(sections/search.css);
@import url(sections/suggestions.css);
@import url(sections/resultat.css);
@import url(sections/compare.css);
@import url(sections/victory.css);
@import url(sections/menu.css);
@import url(sections/stats.css);
@import url(sections/selectmode.css);
@import url(sections/mode2.css);
@import url(sections/photomode.css);


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}


body {
      background-image: url("../assets/bg.png");
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-color: black;
}


    
img {
    max-width: 200px;
    height: auto;
    -webkit-box-shadow: 0px 0px 101px 17px rgba(0, 65, 112, 0.489);
    -moz-box-shadow: 0px 0px 101px 17px rgba(0, 65, 112, 0.489);
    box-shadow: 0px 0px 101px 17px rgba(0, 65, 112, 0.489);
    
    /* Propriétés pour l'animation */
    transition: all 0.3s ease;
    cursor: pointer;
}


.main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding: 24px 16px 64px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

/* Layout colonne unique centré pour le mode Classique */
.wordle-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 700px;
}

/* Les éléments étroits (box, search, indicateurs) se limitent à 500px */
.wordle-layout > .container,
.wordle-layout > .search-container,
.wordle-layout > .container-wide {
    width: 100%;
    max-width: 500px;
}

@media (max-width: 768px) {
  html, body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  body {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
    background-size: 320%;
    min-height: 100svh;
  }

  .main {
    padding: 16px 12px 80px;
  }
}

/* margin-top géré par .wordle-layout, pas besoin de surcharges */