/* ===== FRICA SERVICES — Pages « Offres d'emploi » (prestataires) — reprise du style FRICA GROUP en bleu ===== */

.nav-link[aria-current="page"] { color: #111111; font-weight: 700; }
.nav-link[aria-current="page"]::after { width: 100%; }

/* Hero */
.jobs-hero {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 152px 5% 72px;
  overflow: hidden;
}
.jobs-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(63,92,217,0.16), transparent 65%);
  pointer-events: none;
}
.jobs-hero-inner { position: relative; max-width: 760px; }
.jobs-hero .section-tag { margin-bottom: 16px; }
.jobs-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.jobs-hero h1 .highlight { color: var(--accent); }
.jobs-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 620px;
}
.jobs-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(63,92,217,0.12);
  border: 1px solid rgba(63,92,217,0.35);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.jobs-count::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(63,92,217,0.2);
}

/* Liste */
.jobs { background: var(--gray-50); }
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.jobs-empty {
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  color: var(--gray-500);
}
.jobs-empty strong { display: block; color: var(--gray-900); font-size: 18px; margin-bottom: 6px; }

/* Carte d'offre */
.job {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
}
.job-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.job-pole {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.job-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 8px;
}
.job-resume { color: var(--gray-500); font-size: 15px; margin-bottom: 14px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: 5px 12px;
  border-radius: 100px;
}
.job-tag.accent { background: rgba(63,92,217,0.12); color: #1a2d7a; }

.job-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  border: 2px solid var(--gray-300);
  padding: 10px 20px;
  border-radius: 10px;
  transition: var(--transition);
}
.job-card:hover .job-toggle { border-color: var(--accent); background: var(--accent); }

/* Détail */
.job-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 36px 32px;
}
.job-hire {
  background: rgba(63,92,217,0.08);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 28px;
}
.job-hire strong { color: var(--gray-900); }

.job-block { margin-bottom: 28px; }
.job-block:last-child { margin-bottom: 0; }
.job-block h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.job-block h3.job-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0 8px;
}
.job-block ul { display: flex; flex-direction: column; gap: 8px; }
.job-block li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.55;
}
.job-block li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.job-block.plus li::before { content: '+'; background: none; width: auto; height: auto; top: 0; left: 3px; color: var(--accent); font-weight: 800; }

/* Colonne latérale */
.job-aside { display: flex; flex-direction: column; gap: 16px; }
.job-aside-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}
.job-facts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.job-fact dt {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}
.job-fact dd { font-size: 15px; font-weight: 600; line-height: 1.4; }
.job-apply {
  width: 100%;
  justify-content: center;
}
.job-links { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.job-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.job-link:hover { border-color: var(--accent); color: var(--accent); }
.job-poster {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.job-poster img { width: 100%; height: auto; }
.job-date { font-size: 13px; color: var(--gray-500); text-align: center; }

/* Page d'une offre */
.job-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.job-hero-tags { margin-top: 24px; }
.job-hero-tags .job-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }
.job-hero-tags .job-tag.accent { background: rgba(63,92,217,0.15); color: var(--accent); }
.job-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.job-detail .job-article { max-width: 1100px; margin: 0 auto; }
.job-about { font-size: 15px; color: var(--gray-700); line-height: 1.65; }
.jobs-others { max-width: 1100px; margin: 56px auto 0; }
.jobs-others h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.jobs-back { max-width: 1100px; margin: 32px auto 0; }
.jobs-back a { font-weight: 700; color: var(--primary); }
.jobs-back a:hover { color: var(--accent); }

/* Avantages + candidature spontanée */
.jobs-perks { background: var(--white); }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.perk {
  padding: 24px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.55;
}
.perk-num { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }

.jobs-spont {
  max-width: 1100px;
  margin: 64px auto 0;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.jobs-spont h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.jobs-spont p { color: rgba(255,255,255,0.65); max-width: 560px; }

.jobs .section-header,
.jobs-perks .section-header { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Affiche agrandie */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,22,40,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.poster-modal.open { display: flex; }
.poster-modal img { max-height: 90vh; width: auto; border-radius: var(--radius); }
.poster-modal button {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .job-body { grid-template-columns: 1fr; }
  .job-poster { max-width: 360px; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .jobs-hero { padding: 112px 5% 48px; }
  .jobs-hero p { font-size: 16px; }
  .job-card { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .job-hero-actions .btn-primary, .job-hero-actions .btn-outline { width: 100%; justify-content: center; }
  .job-title { font-size: 19px; }
  .job-toggle { justify-content: center; }
  .job-body { padding: 24px 18px; gap: 28px; }
  .perks-grid { grid-template-columns: 1fr; }
  .jobs-spont { padding: 28px 20px; margin-top: 40px; }
  .jobs-spont .btn-primary { width: 100%; }
}

/* ===== Candidature FRICA SERVICES : WhatsApp, appel, agence ===== */
.job-hero .btn-primary, .job-apply.btn-primary { background: #25d366; color: #0a1628; }
.job-hero .btn-primary:hover, .job-apply.btn-primary:hover { background: #3be07b; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-primary svg, .job-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.apply-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.apply-way { background: var(--white); border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.apply-way .apply-icon { font-size: 28px; }
.apply-way h3 { font-size: 18px; font-weight: 800; color: var(--gray-900); }
.apply-way p { font-size: 14.5px; color: var(--gray-700); line-height: 1.55; flex: 1; }
.apply-way a.apply-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: var(--transition); }
.apply-way a.apply-wa { background: #25d366; color: #0a1628; }
.apply-way a.apply-tel { background: var(--accent); color: #fff; }
.apply-way a.apply-map { border: 2px solid var(--gray-300); color: var(--primary); }
.apply-way a.apply-btn:hover { transform: translateY(-2px); }
.apply-docs { max-width: 1100px; margin: 20px auto 0; background: rgba(63,92,217,0.08); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 20px; color: var(--gray-700); font-size: 14.5px; }
.apply-docs strong { color: var(--gray-900); }
.apply-docs ul { margin: 8px 0 0 18px; list-style: disc; display: grid; gap: 4px; }
.job-card .job-icon { font-size: 30px; margin-bottom: 6px; }
@media (max-width: 900px) { .apply-ways { grid-template-columns: 1fr; } }

/* Corrections */
.apply-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.jobs-hero .btn-primary { background: #25d366; color: #0a1628; }
.jobs-hero .btn-primary:hover { background: #3be07b; }
.navbar .nav-link[aria-current="page"] { color: #fff; font-weight: 700; }
.navbar .nav-link[aria-current="page"]::after { width: 100%; background: #3f5cd9; }
.jobs-hero h1 .highlight { color: #7b93f5; }
