/**
 * EntreAgri - Page d'accueil (index.html)
 * Styles spécifiques à la home
 */

main.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  background-color: rgba(17, 89, 85, 1);
  background-image: url("../../images/bg.avif");
  background-size: calc(110% + 0px);
  background-repeat: no-repeat;
  background-position: 20% -70px;
  min-height: 100vh;
}

main.home article {
 
  background: white;
  padding: 48px 24px;
  border-radius: 48px;
  margin: 48px auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 100vh;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
  container-type: inline-size;
  width: clamp(300px,calc(100% - 648px), 840px );
}

@media(max-width:1279px)
{
  main.home article
  {
    width: clamp(300px, 100%, 1180px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(600px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main.home article .text-content {
  max-width: 620px;
  text-align: center;
  margin: auto;
}

main.home article .text-content.seo {
  text-align: left;
}

main.home article .faq {
  width: 100%;
  max-width: 620px;
  margin: auto;
}

main.home h1 {
  max-width: 460px;
  margin: 0 auto 24px;
}

main.home h2 {
  text-align: center;
  font-size: 28px;
}

/* Home grid for categories */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

@container (max-width: 780px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@container (max-width: 384px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main.home article {
    padding: 24px 16px;
    border-radius: 24px;
    margin: 24px 8px;
  }
}
