/* e:\MYRSI\site-myrsi\offres-emploi\job-page.css */

:root {
  --primary-color: #330cb3;
  --primary-light: #4c1ce6;
  --secondary-color: #1a0a3e;
  --accent-color: #8b5cf6;
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(51, 12, 179, 0.1);
}

.job-body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
}

/* Hero Section */
.job-hero {
  background: linear-gradient(135deg, #000 0%, #1a0a3e 100%);
  padding: 120px 0 80px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.job-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(51, 12, 179, 0.2) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.job-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.job-breadcrumb {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 10px;
  display: block;
}

/* Content Layout */
.job-container {
  max-width: 1200px;
  margin: -40px auto 100px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.job-main-card {
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--glass-border);
}

.job-details {
  flex: 1 1 500px;
  padding: 50px;
  background: white;
}

.job-image-section {
  flex: 1 1 400px;
  min-height: 400px;
  position: relative;
}

.job-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Badges */
.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.meta-item {
  background: #f1f5f9;
  padding: 15px 20px;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Sections */
.details-section {
  margin-bottom: 35px;
}

.details-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-section p,
.details-section li {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.05rem;
}

.details-list {
  list-style: none;
  padding: 0;
}

.details-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 30px;
}

.details-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  background: rgba(139, 92, 246, 0.1);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Postuler Button */
.apply-container {
  margin-top: 50px;
  text-align: center;
}

.btn-postuler {
  background: var(--primary-color);
  color: white;
  padding: 18px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(51, 12, 179, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-postuler:hover {
  transform: translateY(-3px);
  background: var(--primary-light);
  box-shadow: 0 15px 30px rgba(51, 12, 179, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
  .job-title {
    font-size: 2.2rem;
  }
  .job-details {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .job-main-card {
    flex-direction: column;
  }
  .job-image-section {
    min-height: 300px;
    order: -1;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
