/* Style pour la page Emplois */

/* Structure de la page avec footer en bas */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

body > * {
  flex: 0 0 auto;
}

.jobs-container {
  flex: 1 0 auto;
}

.footer {
  flex: 0 0 auto;
}

.jobs-hero {
  background: linear-gradient(135deg, #0b1c2c 0%, #0b1c2c 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.jobs-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.jobs-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

/* Barre de filtres */
.jobs-filters {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.jobs-filters h3 {
  margin-top: 0;
  color: #1a1a1a;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}

.filter-form select {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-form select:hover,
.filter-form select:focus {
  border-color: #f57c00;
  outline: none;
}

.filter-form button {
  padding: 0.8rem 2rem;
  background-color: #f57c00;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-form button:hover {
  background-color: #e55d00;
  transform: translateY(-2px);
}

.jobs-container {
  flex: 1 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.jobs-container > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Carte d'emploi */
.job-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.15);
}

.job-card-logo {
  height: 140px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.job-card-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.job-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.job-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem 0;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.3;
}

.job-card-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.job-card-info-item {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.job-card-info-label {
  font-weight: 600;
  color: #f57c00;
  min-width: 80px;
}

.job-card-info-value {
  color: #555;
}

.job-card-footer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: auto;
}

.job-card-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #f57c00;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.job-card-btn:hover {
  background-color: #e55d00;
  transform: scale(1.02);
}

/* État vide */
.jobs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .jobs-hero {
    padding: 2rem 1.5rem;
  }

  .jobs-hero h1 {
    font-size: 1.8rem;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-form button {
    width: 100%;
  }

  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .job-card-content {
    padding: 1rem;
  }

  .job-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .jobs-container {
    padding: 0 15px;
  }

  .jobs-hero {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }

  .jobs-hero h1 {
    font-size: 1.5rem;
  }

  .jobs-filters {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .job-card-info {
    font-size: 0.85rem;
  }
}
