body {
  margin: 0;
  font-family: "Garamond", serif;
  color: #ffffff;
  background: linear-gradient(to bottom, #f9f7f3, #e8f3ef);
  scroll-behavior: smooth;
  text-align: justify;
}

.hero {
  height: 100vh;
  background: linear-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.6)
    ),
    url("../image/Femme meditation2.png") center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero img {
  max-width: 300px;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  padding: 0.8em 1.2em;
  border-radius: 20px;
  display: inline-block;
}

main {
  padding: 4em 1em;
  max-width: 1700px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  color: #6b705c;
  font-size: 2.3rem;
  margin-bottom: 2em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5em;
}

.news-item {
  background-color: #fffaf5;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item img {
  width: 100%;
  height: 550px;
  object-fit: contain;
}

.news-item div {
  padding: 1.5em;
  text-align: center;
}

footer {
  text-align: center;
  padding: 2em;
  background-color: #f5ebe0;
  color: #333;
  font-weight: bold;
}

a {
  color: #8c6a43;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bloc {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.bloc button {
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  color: #3b3b00;
  cursor: pointer;
  transition: transform 0.3s;
}

.bloc button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  width: 0;
  background: #3b3b00;
  transition: width 0.28s ease;
  border-radius: 2px;
}

.bloc button:hover::after {
  width: calc(100% - 24px);
}

.bloc button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.9);
}

p {
  color: black;
}

h3 {
  color: black;
}

/* Responsive mobile */
@media (max-width: 400px) {
  .hero {
    background-attachment: scroll;
    padding: 2rem 1rem;
    height: auto;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0.6em 1em;
  }

  .hero img {
    max-width: 220px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-item img {
    height: 300px;
  }

  main {
    padding: 2em 1em;
  }

  h2 {
    font-size: 1.8rem;
  }

  .bloc {
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    padding: 0.2rem 0.3rem;
    gap: 0.2rem;
    max-width: 95vw;
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
  }

  .bloc button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-width: 80px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .bloc::-webkit-scrollbar {
    display: none;
  }
}
