/* Style pour la section "Dernières annonces" */

.last-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 2rem 0;
  padding: 0 20px;
}

.emploi-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.emploi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.emploi-card .logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.emploi-card h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.emploi-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.emploi-card p:first-of-type {
  color: #f57c00;
  font-weight: 500;
}

.emploi-card .meta {
  font-size: 0.85rem;
  color: #999;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid #eee;
}

/* Section titre */
.last-jobs + h2,
h2 + .last-jobs {
  margin-top: 2rem;
}

h2 {
  font-size: 1.4rem;
  color: #f57c00;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Message absence annonces */
.last-jobs p:only-child {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 2rem 0;
}

/* Bouton Voir */
.btn-voir {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background-color: #f57c00;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn-voir:hover {
  background-color: #e55d00;
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .last-jobs {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    padding: 0 10px;
  }
  
  .emploi-card {
    padding: 1rem;
  }
  
  .emploi-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .last-jobs {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 1.2rem;
  }
}
