/* -------------------- SECTION ACTUALITÉS -------------------- */

/* Classe commune pour la section */
.actualites-section {
  position: relative;
  z-index: 10;
  padding: 20px 20px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* Filtres et tri */
.actualites-filters {
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
}

.sort-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sort-label {
  color: #e0e0e0;
  font-weight: 600;
  font-size: var(--base);
  min-width: fit-content;
}

.sort-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--base);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sort-btn:hover {
  border-color: #f5fc14;
  color: #f5fc14;
}

.sort-btn.active {
  background: rgba(245, 252, 20, 0.15);
  border-color: #f5fc14;
  color: #f5fc14;
}

.actualites-section h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 60px;
  font-size: var(--h2);
  font-weight: 700;
  color: #fff;
  border-bottom: 3px solid #f5fc14;
  padding-bottom: 10px;
  display: inline-block;
}

.actualites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.actualite-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.actualite-card:hover {
  transform: translateY(-10px);
}

.actualite-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 25px;
}

.actualite-image img,
.actualite-image iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.actualite-image iframe {
  border: none;
}

.actualite-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.actualite-card h3 {
  font-size: var(--h3);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.actualite-date {
  font-size: var(--base);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  font-weight: 500;
}

.actualite-description {
  font-size: var(--base);
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex: 1;
}

.read-more {
  color: #f5fc14;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--base);
  transition: color 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: #fff;
}

.read-more span {
  margin-left: 5px;
}

.actualites-footer {
  display: flex;
  justify-content: center;
}

.load-more-btn {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: var(--base);
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.load-more-btn:hover {
  border-color: #f5fc14;
  color: #f5fc14;
}

/* Responsive */
@media (max-width: 968px) {
  .actualites-section {
    padding: 40px 20px;
  }

  .actualites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .actualites-section h2 {
    margin-bottom: 40px;
  }

  .sort-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-label {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .sort-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .actualites-grid {
    grid-template-columns: 1fr;
  }

  .actualite-image {
    height: 200px;
  }

  .actualites-section h2 {
    font-size: var(--h2);
  }

  .search-form {
    flex-direction: column;
  }

  .search-input,
  .search-btn {
    width: 100%;
  }

  .sort-buttons {
    justify-content: center;
  }
}