body {
  font-family: 'REM', sans-serif;
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: #333;
  position: relative;
  overflow-x: hidden;
  }
  body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../img/fond.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -1;
  }
  .hero-banner {
  width: auto;
  height: 230px;
  background-image: url('../../img/bandeau2.jpg');
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 20px;
  padding-left: 15%;
  color: #222;
  margin-top: 75px;
  box-shadow: inset 0px 10px 12px -10px rgba(0, 0, 0, 0.3);
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  }
  .hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(0px);
  z-index: 1;
  }
  .hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.7));
  z-index: 2;
  pointer-events: none;
  }
  .hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  width: 80%;
  animation: fadeInUp 0.8s ease-out forwards;
  }
  @keyframes fadeInUp {
  from {
  opacity: 0;
  transform: translateY(30px);
  }
  to {
  opacity: 1;
  transform: translateY(0);
  }
  }
  @keyframes fadeInUpShifted {
  from {
  opacity: 0;
  transform: translate(-50px, 30px);
  }
  to {
  opacity: 1;
  transform: translate(-50px, 0);
  }
  }
  .hero-content h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
  font-family: 'REM';
  line-height: 1.4;
  }
  .hero-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  font-family: 'REM';
  }
  .separator {
  width: 150px;
  height: 3px;
  background: #c19a5f;
  border-radius: 2px;
  }
  .section-header{
  margin-bottom: 0px;
  font-family: 'REM', sans-serif;
  }
  .section-header h2 {
  font-size: 1.7rem;
  font-weight: 400;
  color: #333;
  margin: 0;
  margin-top: 50px;
  margin-bottom: 10px;
  position: relative;
  text-align: center;
  }
  .section-header h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background-color: #c19a5f;
  margin: 30px auto 0;
  }
  .section-header p {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: center;
  }
  .blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 30px;
  }
  .blog-card {
  background-color: transparent;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  }
  .blog-card:nth-child(1) { animation-delay: 0.2s; }
  .blog-card:nth-child(2) { animation-delay: 0.4s; }
  .blog-card:nth-child(3) { animation-delay: 0.6s; }
  .blog-card:nth-child(4) { animation-delay: 0.8s; }
  .blog-card:nth-child(5) { animation-delay: 1s; }
  .blog-card:nth-child(6) { animation-delay: 1.2s; }
  .blog-card .image-container {
  position: relative;
  overflow: hidden;
  }
  .blog-card .image-container img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease-in-out;
  }
  .blog-card .image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease-in-out;
  }
  .blog-card .image-container:hover::after {
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  }
  .blog-content {
  padding: 0px;
  text-align: left;
  }
  .blog-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #2c3e50;
  min-height: 50px;
  margin-top: 20px;
  }
  .article-title {
  text-decoration: none;
  color: #333;
  display: inline-block;
  }
  .article-title:hover {
  text-decoration: underline;
  }
  .blog-content p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
  }
  @media (max-width: 1024px) {
  .blog-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 10px 20px;
  }
  }
  @media (max-width: 768px) {
  .hero-banner {
  width: 80%;
  }
  .hero-content {
  width: 90%;
  margin-left: 20px;
  }
  .blog-container {
  grid-template-columns: 1fr;
  padding: 0px 40px;
  }
  .blog-content h2 {
  font-size: 1.2rem;
  }
  .blog-content p {
  font-size: 0.9rem;
  }
  }
  @media (max-width: 1100px) {
  .section-header {
  padding: 40px 15px;
  max-width: 90%;
  margin-top: -40px;
  }
  .hero-content {
  width: 90%;
  animation: fadeInUpShifted 0.8s ease-out forwards;
  }
  .hero-content h1 {
  font-size: 1.8rem;
  }
  .hero-content p {
  font-size: 1rem;
  }
  }
  @media (max-width: 600px) {
  .hero-content h1 {
  font-size: 1.4rem;
  }
  .hero-content p {
  font-size: 0.9rem;
  }
  .section-header h2 {
  font-size: 1.4rem;
  }}
  @media screen and (max-width: 768px) {
  body::before {
  background-size: auto 100vh;
  background-position: center;
  background-attachment: scroll;
  }
  }

  .list-categories {
    text-align: center;
    margin-top: 30px;
  }
  .btn-category {
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
    background-color: #c19a5f;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    width: fit-content;
    transition: background-color 0.3sease;
  }

  .pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 0px;
flex: 1;
margin: -17px auto 0;
margin-bottom: 20px;
}
.pagination a {
  text-decoration: none;
background-color: #ffffff9f;
border: none;
color: #333;
padding: 5px 8px;
margin: 0 4px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
font-family: inherit;
transition: background-color 0.3s ease;
width: 30px;
height: 30px;
display: inline-flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
box-shadow:
0px 2px 5px rgba(0, 0, 0, 0.05),
0px -2px 5px rgba(0, 0, 0, 0.04),
2px 0px 5px rgba(0, 0, 0, 0.04),
-2px 0px 5px rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.pagination a.active {
background-color: #c19a5f;
color: #fff;
font-weight: bold;
}
.pagination a:hover {
background-color: #a0763d;
color: #fff;
font-weight: 600;
}
