/* Style reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #f3f4f6, #e2e8f0);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(45deg, #ff7e5f, #feb47b);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

main {
  flex: 1;
  padding: 60px 20px;
}

#news-section {
  max-width: 1400px;
  margin: 0 auto;
}

.category-section {
  margin-bottom: 60px;
}

.category-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.2px;
}

.news-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Style des cartes */
.news-card {
  background: linear-gradient(145deg, #fdfbfb, #ebedee);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.news-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.95);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.news-card:hover img {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.news-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: #ff7e5f;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

.news-card p {
  font-size: 1rem;
  font-weight: 400;
  padding: 0 20px 30px;
  color: #555;
  line-height: 1.6;
}

/* Badge de nouveauté */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff7e5f;
  color: white;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 700;
}

/* Boutons "En savoir plus" */
button {
  background-color: #ff7e5f;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #feb47b;
  transform: scale(1.05);
}

/* Bouton "Charger plus" */
.load-more {
  display: block;
  margin: 20px auto 0;
  background: #333;
  color: white;
  font-size: 1rem;
  padding: 10px 30px;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.load-more:hover {
  background: #444;
  transform: scale(1.1);
}

.load-more:disabled {
  background: #aaa;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background-color: #333;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer p {
  font-size: 1rem;
  font-weight: 300;
}

/* Animation */
.news-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation gradient */
header {
  animation: gradient 5s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.update-badge {
    display: inline-block;
    background-color: #ffcc00;
    color: #000;
    font-size: 0.8em;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    margin-left: 5px;
}

