/* Style pour la page de description d'une offre d'emploi */

.job-detail-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 20px;
}

/* En-tête avec titre et infos principales */
.job-header {
  background: linear-gradient(135deg, #0b1c2c 0%, #0b1c2c 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.2);
}

.job-header h1 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.job-reference {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Informations principales en 2 colonnes */
.job-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #0b1c2c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.info-card .label {
  font-size: 0.85rem;
  color: #f57c00;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.info-card .value {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

/* Sections de contenu */
.job-section {
  margin-bottom: 2.5rem;
}

.job-section h2 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f57c00;
  font-weight: 600;
}

.job-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Bouton Postuler */
.job-action {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.btn-postuler {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #f57c00;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(245, 124, 0, 0.2);
}

.btn-postuler:hover {
  background-color: #e55d00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 124, 0, 0.3);
}

.btn-postuler:active {
  transform: translateY(0);
}

/* Lien de retour */
.job-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  color: #f57c00;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.job-back-link:hover {
  color: #e55d00;
}

/* Responsive */
@media (max-width: 768px) {
  .job-header {
    padding: 1.5rem;
  }

  .job-header h1 {
    font-size: 1.5rem;
  }

  .job-info-grid {
    gap: 1rem;
  }

  .info-card {
    padding: 1rem;
  }

  .job-section h2 {
    font-size: 1.2rem;
  }

  .btn-postuler {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .job-detail-container {
    padding: 0 15px;
  }

  .job-header {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .job-header h1 {
    font-size: 1.3rem;
  }

  .info-card {
    padding: 0.9rem;
  }

  .job-section p {
    font-size: 0.95rem;
  }
}
