﻿/* ========== Page Offres d'emploi ========== */
.jobs-page {
  --jobs-orange: #FF4500;
  --jobs-orange-soft: #FFF5F0;
  background: #ffffff;
  padding-bottom: 3.5rem;
}

.jobs-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 0.5rem 0 2rem;
}

.jobs-hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.jobs-hero-text h1 span {
  color: var(--jobs-orange);
}

.jobs-hero-text p {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.jobs-hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  justify-items: center;
}

.jobs-hero-bubble {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--jobs-orange-soft);
  color: var(--jobs-orange);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(239, 108, 0, 0.12);
}

.jobs-hero-bubble:nth-child(2),
.jobs-hero-bubble:nth-child(3) {
  transform: translateY(12px);
}

/* Filters */
.jobs-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.85fr) auto;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(14, 60, 20, 0.06);
  margin-bottom: 2rem;
  align-items: center;
}

.jobs-filter-search {
  position: relative;
}

.jobs-filter-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa39a;
}

.jobs-filter-search input,
.jobs-filters select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text);
}

.jobs-filter-search input {
  padding-left: 2.5rem;
}

.jobs-filter-search input:focus,
.jobs-filters select:focus {
  outline: none;
  border-color: var(--jobs-orange);
  box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.12);
}

.jobs-search-btn {
  background: var(--jobs-orange) !important;
  border-color: var(--jobs-orange) !important;
  color: #fff !important;
  white-space: nowrap;
  padding: 0.8rem 1.25rem;
}

.jobs-search-btn:hover {
  filter: brightness(0.95);
}

.jobs-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.jobs-empty .btn {
  margin-top: 1rem;
}

/* Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.jobs-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(14, 60, 20, 0.05);
  transition: 0.25s ease;
}

.jobs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(14, 60, 20, 0.1);
}

.jobs-card-media {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #FFF5F0, #ffe0b2);
  color: var(--jobs-orange);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}

.jobs-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jobs-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jobs-card-title {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.jobs-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--jobs-orange-soft);
  color: var(--jobs-orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.jobs-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.jobs-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.jobs-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  flex: 1;
}

.jobs-skills-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.jobs-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.jobs-skills span {
  font-size: 0.72rem;
  background: #F7F7F7;
  color: #555;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.jobs-details {
  color: var(--jobs-orange);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.jobs-details:hover {
  gap: 0.65rem;
}

/* Modal détail offre */
.job-modal[hidden] {
  display: none !important;
}

.job-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.job-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 14, 0.55);
  backdrop-filter: blur(3px);
}

.job-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.job-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #F7F7F7;
  color: #555;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.job-modal-close:hover {
  background: #E8E8E8;
}

.job-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 2.5rem;
  margin-bottom: 1rem;
}

.job-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFF5F0;
  color: #FF4500;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.job-modal-heading {
  flex: 1;
  min-width: 0;
}

.job-modal-heading h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.job-modal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.job-modal-meta i {
  color: #FF4500;
  margin-right: 0.25rem;
}

.job-modal-badge {
  background: #FFF5F0;
  color: #FF4500;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.job-modal-about {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.job-modal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.job-modal-cols h3,
.job-modal-skills-block h3,
.job-modal-footer-grid h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.job-modal-cols h3 i,
.job-modal-skills-block h3 i,
.job-modal-footer-grid h3 i {
  color: #FF4500;
}

.job-modal-cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.job-modal-cols li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.job-modal-cols li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #FF4500;
  font-weight: 700;
}

.job-modal-skills-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
  margin-bottom: 1.25rem;
}

.job-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.job-modal-skills span {
  font-size: 0.78rem;
  background: #F7F7F7;
  color: #555;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.job-modal-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.job-modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.job-modal-info li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.job-modal-info strong {
  color: var(--text);
}

.job-modal-apply-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.job-modal-apply {
  width: 100%;
  justify-content: center;
}

@media (max-width: 700px) {
  .job-modal-cols,
  .job-modal-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.jobs-pagination a {
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.jobs-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.jobs-pagination a.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.jobs-pagination span {
  color: var(--text-muted);
}

.jobs-next {
  margin-left: 0.25rem;
}

@media (max-width: 1100px) {
  .jobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .jobs-filters {
    grid-template-columns: 1fr 1fr;
  }

  .jobs-search-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .jobs-hero {
    grid-template-columns: 1fr;
  }

  .jobs-hero-visual {
    display: none;
  }

  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .jobs-grid,
  .jobs-filters {
    grid-template-columns: 1fr;
  }
}
