@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
  width: 100%;
  margin: 0;
}

/* Mobile first */
#content:has(.movie__card) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
}

.movie__card {
  width: 100%;
  cursor: pointer;
}

.movie__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.movie__card h2 {
  font-size: 0.85rem;
  text-align: center;
  font-family: "Roboto", sans-serif;
  margin-top: 0.5rem;
}

/* Tablette */
@media (min-width: 600px) {
  #content:has(.movie__card) {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }

  .movie__card img {
    height: 250px;
  }

  .movie__card h2 {
    font-size: 0.95rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  #content:has(.movie__card) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .movie__card img {
    height: 300px;
  }

  .movie__card h2 {
    font-size: 1rem;
  }
}
