/* PRFR-PRIMO — pages recrutement */
:root {
  --recruit-teal: #0f766e;
  --recruit-teal-light: #14b8a6;
  --recruit-bg: #eef3f8;
  --recruit-card: #fff;
  --recruit-text: #0f172a;
  --recruit-muted: #64748b;
  --recruit-line: #e2e8f0;
  --ht-blue: #003F70;
  --ht-red: #C41230;
  --accent-gold: #FFC235;
  --font-display: "Barlow Condensed", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 820px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--recruit-bg);
  color: var(--recruit-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Careers nav — reuse site-header / main-nav from site.css; active = red underline */
#recruit-header .main-nav a.is-active:not(.nav-careers) {
  color: var(--ht-red);
  border-bottom-color: var(--ht-red);
}
#recruit-header .main-nav a.nav-careers.is-active {
  filter: brightness(1.1);
  box-shadow: 0 3px 14px rgba(15, 118, 110, 0.45);
}

.recruit-hero {
  position: relative;
  color: #fff;
  padding: 48px 20px 52px;
  text-align: center;
  overflow: hidden;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--recruit-teal);
}
.recruit-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("assets/hero-professionals.jpg") 55% 42% / cover no-repeat;
}
.recruit-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      125deg,
      rgba(0, 34, 68, 0.88) 0%,
      rgba(15, 118, 110, 0.78) 42%,
      rgba(0, 63, 112, 0.72) 100%
    ),
    linear-gradient(to top, rgba(0, 20, 40, 0.55) 0%, transparent 55%);
}
.recruit-hero::before,
.recruit-hero::after { pointer-events: none; }
.recruit-hero h1,
.recruit-hero p {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.recruit-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.recruit-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(255, 194, 53, 0.45));
}
.recruit-hero p {
  margin: 0;
  opacity: .94;
  font-size: 15px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.recruit-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.role-card {
  background: var(--recruit-card);
  border: 1px solid var(--recruit-line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(15,23,42,.05);
  transition: box-shadow .15s, border-color .15s;
}
.role-card:hover {
  border-color: var(--recruit-teal-light);
  box-shadow: 0 4px 20px rgba(15,118,110,.12);
}
.role-card h2, .role-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.role-tag {
  display: inline-block;
  background: var(--ht-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.role-meta { color: var(--recruit-muted); font-size: 14px; margin: 0 0 14px; }
.role-badge {
  display: inline-block;
  background: var(--ht-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.role-campaign { margin-bottom: 36px; }
.campaign-head { margin-bottom: 18px; }
.campaign-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ht-blue);
}
.campaign-sub { margin: 0; color: var(--recruit-muted); font-size: 15px; }
.campaign-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--ht-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: filter .15s, background .15s;
}
.btn-teal {
  background: var(--recruit-teal);
  color: #fff;
}
.btn-teal:hover { filter: brightness(1.08); }
.btn-outline {
  background: #fff;
  color: var(--recruit-teal);
  border-color: var(--recruit-teal);
}
.btn-outline:hover { background: #f0fdfa; }

.detail-card {
  background: var(--recruit-card);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
.detail-card h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.detail-card h3 {
  margin: 24px 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ht-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-card ul { margin: 0; padding-left: 20px; }
.detail-card li { margin-bottom: 8px; }

.apply-card {
  background: var(--recruit-card);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
.apply-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--recruit-muted);
}
.apply-card input,
.apply-card select,
.apply-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  margin-bottom: 16px;
}
.apply-card input[type="file"] { padding: 10px; background: #f8fafc; }

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
}
.alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.muted { color: var(--recruit-muted); font-size: 14px; }
.back-link { margin-top: 20px; }
.back-link a { color: var(--recruit-teal); font-weight: 600; }

.recruit-footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--recruit-muted);
  font-size: 13px;
}
.recruit-footer a { color: var(--recruit-teal); }

.loading { text-align: center; color: var(--recruit-muted); padding: 32px 0; }

.status-card {
  background: var(--recruit-card);
  border: 1px solid var(--recruit-line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 2px 12px rgba(15,23,42,.05);
}
.status-steps { margin-top: 16px; }
.status-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.status-step:last-child { border-bottom: none; }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 6px;
  flex-shrink: 0;
}
.status-step.is-done .status-dot { background: var(--recruit-teal); }

/* Voice dictation (Dicter) — same pattern as ops dashboard */
.voice-field-wrap { margin-bottom: 14px; }
.voice-label-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.voice-mic-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.voice-mic-btn:hover { background: #f8fafc; border-color: var(--recruit-teal); color: var(--recruit-teal); }
.voice-mic-btn:disabled { opacity: .55; cursor: not-allowed; }
.voice-mic-btn.recording {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  animation: recruit-voice-pulse 1.2s ease-in-out infinite;
}
@keyframes recruit-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .25); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.voice-hint {
  font-size: 11px;
  color: var(--recruit-muted);
  margin-top: 4px;
  min-height: 14px;
  line-height: 1.4;
}
.voice-hint.ok { color: #15803d; }
.voice-hint.err { color: #b91c1c; }
.voice-hint.busy { color: #1d4ed8; }

@media (max-width: 600px) {
  #recruit-header .header-inner { justify-content: center; }
  .recruit-hero {
    height: auto;
    min-height: 240px;
    max-height: none;
    padding: 40px 16px 44px;
  }
  .role-actions { flex-direction: column; }
  .role-actions .btn { text-align: center; }
  .detail-card, .apply-card { padding: 20px 16px; }
}
