/* ===== Global page style ===== */

body {
  background-color: #F3F4F6;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* Si ton nav a cet id dans base.html */
#main-navigation {
  background-color: #111827;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

/* ===== Hero / welcome ===== */

#welcome {
  background: radial-gradient(circle at top left, #7C3AED, #111827);
  padding: 3.5rem 1.5rem 4rem 1.5rem;
  color: #F9FAFB;
}

#welcome header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 60rem;
  margin: 0 auto 2.5rem auto;

  
}

#welcome img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 3px solid rgba(249, 250, 251, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.55);
}

#welcome h2 {
  font-size: 2.2rem;
  text-align: center;
  margin: 0;
}

#welcome p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40rem;
  text-align: center;
  margin: 0.25rem auto 0;
  color: #E5E7EB;
}

/* ===== Latest posts section ===== */

#latest-posts {
  width: 100%;
  max-width: 64rem;
  margin: -3rem auto 2.5rem auto;
  padding: 1.5rem;
  background-color: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.20);
}

#latest-posts h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: #111827;
}

#latest-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

#latest-posts li {
  min-height: 100%;
}

/* ===== About section ===== */

#about {
  max-width: 64rem;
  margin: 0 auto 3.5rem auto;
  padding: 2.25rem 1.5rem;
  background-color: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
  text-align: center;
}

#about h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: #111827;
}

#about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4B5563;
  max-width: 40rem;
  margin: 0.25rem auto;
}

/* ===== Desktop layout ===== */

@media (min-width: 768px) {
  #welcome {
    padding: 5rem 4rem 5rem 4rem;
  }

  #welcome header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  #welcome img {
    width: 9rem;
    height: 9rem;
  }

  #welcome h2 {
    font-size: 2.7rem;
    text-align: left;
  }

  #welcome p {
    text-align: left;
    font-size: 1.1rem;
  }

  #latest-posts {
    padding: 2rem;
    margin-top: -4rem;
  }

  #latest-posts ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #about {
    padding: 3rem 3rem;
  }

  #about h2 {
    font-size: 2.2rem;
  }

  #about p {
    font-size: 1.1rem;
  }
}