/* ===================================
   Styles améliorés pour Last-Pro et Last-Jobs
   =================================== */

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f57c00;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #0b1c2c;
  margin: 0;
  font-weight: 700;
}

.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.see-all-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===================================
   LAST JOBS SECTION
   =================================== */

.last-jobs-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.last-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-items: center;
}

.emploi-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  width: 100%;
  max-width: 320px;
}

.emploi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #f57c00;
}

.emploi-card-header {
  position: relative;
  padding: 1.2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  flex-shrink: 0;
}

.emploi-meta-top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.job-date {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.job-type {
  display: inline-block;
  background: #fff3e6;
  color: #f57c00;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.emploi-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.job-title {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.job-company,
.job-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #555;
}

.company-icon,
.location-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.job-company {
  font-weight: 500;
  color: #0b1c2c;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, #f57c00 0%, #e55d00 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-apply:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(245, 124, 0, 0.3);
}

/* ===================================
   LAST PRO SECTION
   =================================== */

.last-pro-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.type-group {
  margin-bottom: 3rem;
}

.type-title {
  font-size: 1.3rem;
  color: #0b1c2c;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f57c00;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
  justify-items: center;
}

.pro-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  height: 100%;
  width: 100%;
  max-width: 280px;
}

.pro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.pro-card-header {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #f0f0f0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100px;
  max-height: 100px;
}

.pro-logo-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
}

.pro-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.pro-name {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.pro-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #666;
}

.pro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  transition: all 0.3s ease;
}

.pro-link:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Responsive pour tablette (768px) */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .see-all-link {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }

  .last-jobs {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
  }

  .emploi-card-header {
    padding: 1rem;
  }

  .pro-card-header {
    padding: 1.2rem;
    min-height: 100px;
  }

  .emploi-card-body,
  .pro-card-body {
    padding: 1rem;
  }

  .job-title,
  .pro-name {
    font-size: 1.1rem;
  }

  .type-title {
    font-size: 1.15rem;
  }
}

/* Responsive pour mobile (480px) */
@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .see-all-link {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .last-jobs {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .emploi-card-header {
    padding: 0.7rem;
    flex-direction: row;
    min-height: auto;
    gap: 0.7rem;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .emploi-meta-top {
    flex-direction: row;
    gap: 0.5rem;
  }

  .pro-card-header {
    padding: 0.8rem;
    min-height: 70px;
  }

  .pro-logo {
    max-width: 60px;
    max-height: 60px;
  }

  .placeholder-icon {
    font-size: 1.5rem;
  }

  .emploi-card-body,
  .pro-card-body {
    padding: 0.7rem;
  }

  .job-title,
  .pro-name {
    font-size: 0.95rem;
  }

  .btn-apply,
  .pro-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .type-title {
    font-size: 0.95rem;
    margin: 0.8rem 0 0.5rem 0;
  }
}
