.meubles-test {
  padding: 120px 80px;
}

/* GRID */

.meubles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ITEM */

.meuble-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* IMAGE */

.meuble-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.meuble-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.6s ease;
}

/* OVERLAY */

.meuble-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

  padding: 22px;

  background: rgba(0, 0, 0, 0);

  transition: background 0.4s ease;
}

/* CONTENU */

.meuble-overlay-content {
  text-align: left;
}

/* TITRE */

.meuble-overlay h2 {
  color: #fff;

  font-size: 18px;
  font-weight: 500;

  margin: 0 0 14px 0;

  opacity: 0;
  transform: translateY(10px);

  transition: all 0.4s ease;
}

/* META */

.meuble-meta p {
  color: #fff;

  font-size: 14px;
  line-height: 1.5;

  margin: 0;

  opacity: 0;
  transform: translateY(10px);

  transition: all 0.4s ease;
}

/* HOVER IMAGE */

.meuble-item:hover img {
  transform: scale(1.05);
}

/* HOVER OVERLAY */

.meuble-item:hover .meuble-overlay {
  background: rgba(0, 0, 0, 0.28);
}

/* HOVER TEXTE */

.meuble-item:hover .meuble-overlay h2,
.meuble-item:hover .meuble-meta p {
  opacity: 1;
  transform: translateY(0);
}

/* CONTACT */

.meubles-contact {
  margin-top: 120px;
  text-align: left;
  max-width: 600px;
}

.meubles-contact p {
  font-size: 16px;
  margin-bottom: 10px;
}

.meubles-mail {
  font-size: 18px;

  text-decoration: none;

  color: #111;

  border-bottom: 1px solid #111;

  padding-bottom: 2px;

  transition: opacity 0.3s ease;
}

.meubles-mail:hover {
  opacity: 0.6;
}

/* TABLETTE */

@media (max-width: 1024px) {
  .meubles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .meubles-test {
    padding: 80px 20px;
  }

  .meubles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .meuble-overlay {
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);

    justify-content: flex-start;
    align-items: flex-end;
  }

  .meuble-overlay-content {
    text-align: left;
  }

  .meuble-overlay h2 {
    font-size: 15px;
    margin-bottom: 8px;

    opacity: 1;
    transform: none;
  }

  .meuble-meta p {
    font-size: 12px;
    line-height: 1.4;

    opacity: 1;
    transform: none;
  }
}
