/* Recruiter "Publier / Éditer une offre" (R7). Pixel-perfect copy of the
   canonical mockup /mockups/recruiter/post_job, rendered as a real form bound
   to a JobPosition with a live side preview. All rules scoped under
   .page-recruiter-post-job (the mockup's .rpj-wrap). Zero inline CSS in the
   view. */

.page-recruiter-post-job {
  --gold-base: #C4A559;
  --gold-primary: #A8893C;
  --gold-light: #EDCA50;
  --gold-glow: #F8E27A;
  --gold-gradient: linear-gradient(135deg, #C4A559 0%, #D4BC7A 40%, #E5D4A0 70%, #EFE2B8 100%);
  --gold-btn: linear-gradient(135deg, #C4A559 0%, #D4BC7A 40%, #E5D4A0 70%, #EFE2B8 100%);
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDFBF7;
  --bg-subtle: #F2EDE3;
  --ink: #1A1810;
  --ink-mid: #3D3828;
  --text-muted: #7A7060;
  --text-light: #A8998A;
  --border-line: #E8E0D0;
  --border-gold: rgba(180, 140, 35, 0.3);
  --border-subtle: rgba(180, 140, 35, 0.15);
  --shadow-sm: 0 1px 3px rgba(60, 50, 20, 0.07), 0 1px 2px rgba(60, 50, 20, 0.05);
  --shadow-md: 0 4px 16px rgba(60, 50, 20, 0.09), 0 1px 4px rgba(60, 50, 20, 0.06);
  --shadow-gold: 0 8px 32px rgba(180, 140, 35, 0.2);
  font-family: 'Geist', sans-serif;
  color: var(--ink);
}
.page-recruiter-post-job *, .page-recruiter-post-job *::before, .page-recruiter-post-job *::after { box-sizing: border-box; }

@media (max-width: 900px) { .rpj-preview-card { display: none !important; } }

/* ── PAGE HEADER ── */
.rpj-page-header { position: relative; z-index: 1; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border-line); margin-bottom: 0; }
.rpj-breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }
.rpj-breadcrumb span { color: var(--gold-primary); }
.rpj-page-eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 0.75rem; font-weight: 600; }
.rpj-page-title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.75rem; }
.rpj-page-title em { font-style: italic; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rpj-page-subtitle { font-family: 'Geist', system-ui, sans-serif; font-size: 1.15rem; font-style: italic; color: var(--text-muted); max-width: 500px; line-height: 1.6; }

/* ── MODE TOGGLE ── */
.rpj-mode-toggle { display: flex; gap: 12px; padding: 2rem 0; border-bottom: 1px solid var(--border-line); }
.rpj-mode-card { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 10px; border: 1px solid var(--border-line); background: var(--bg-card); text-decoration: none; color: var(--ink); cursor: pointer; transition: all 0.22s; max-width: 360px; box-shadow: var(--shadow-sm); }
.rpj-mode-card:hover { border-color: var(--border-gold); background: #FDFAF3; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(180, 140, 35, 0.1); text-decoration: none; color: var(--ink); }
.rpj-mode-card.rpj-active { border-color: var(--gold-primary); background: #FDFAF3; box-shadow: 0 2px 12px rgba(180, 140, 35, 0.12); }
.rpj-mode-card.rpj-disabled { opacity: 0.55; cursor: not-allowed; }
.rpj-mode-card.rpj-disabled:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border-line); background: var(--bg-card); }
.rpj-mode-icon { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rpj-mode-icon.rpj-upload { background: linear-gradient(135deg, #C4A559, #D4BC7A); }
.rpj-mode-icon.rpj-create { background: var(--bg-subtle); border: 1px solid var(--border-line); }
.rpj-mode-icon svg { width: 18px; height: 18px; }
.rpj-mode-info-title { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.rpj-mode-info-sub { font-size: 0.71rem; color: var(--text-muted); margin-top: 2px; }
.rpj-mode-badge { margin-left: auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-primary); padding: 3px 9px; border-radius: 3px; background: rgba(180, 140, 35, 0.08); border: 1px solid rgba(180, 140, 35, 0.2); }
.rpj-mode-badge.rpj-future { color: var(--text-light); background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.08); }
.rpj-mode-arrow { margin-left: auto; color: var(--text-light); font-size: 18px; }

/* ── MAIN LAYOUT ── */
.rpj-main { position: relative; z-index: 1; padding: 2.5rem 0 6rem; display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }

/* ── FORM PANEL ── */
.rpj-form-panel { display: flex; flex-direction: column; gap: 1.75rem; }
.rpj-form-block { background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 12px; padding: 2.25rem; box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.25s; }
.rpj-form-block:hover { border-color: rgba(180, 140, 35, 0.2); box-shadow: var(--shadow-md); }
.rpj-block-header { display: flex; align-items: baseline; gap: 0.85rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-line); }
.rpj-block-number { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.95rem; color: var(--gold-primary); opacity: 0.7; min-width: 1.4rem; }
.rpj-block-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.rpj-block-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(180, 140, 35, 0.25), transparent); }

/* ── FORM ELEMENTS ── */
.rpj-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.rpj-form-group { margin-bottom: 1.4rem; }
.rpj-form-group:last-child { margin-bottom: 0; }
.page-recruiter-post-job label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 0.5rem; }
.rpj-required-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-primary); margin-left: 4px; vertical-align: middle; margin-bottom: 2px; }
.page-recruiter-post-job input[type="text"],
.page-recruiter-post-job input[type="number"],
.page-recruiter-post-job input[type="date"],
.page-recruiter-post-job select,
.page-recruiter-post-job textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-line); border-radius: 6px; padding: 0.75rem 0.9rem; font-family: 'Geist', sans-serif; font-size: 0.88rem; color: var(--ink); transition: border-color 0.22s, box-shadow 0.22s, background 0.22s; -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
.page-recruiter-post-job input::placeholder, .page-recruiter-post-job textarea::placeholder { color: var(--text-light); }
.page-recruiter-post-job select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8998A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.page-recruiter-post-job select option { background: #fff; color: var(--ink); }
.page-recruiter-post-job textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.page-recruiter-post-job input:focus, .page-recruiter-post-job select:focus, .page-recruiter-post-job textarea:focus { outline: none; border-color: var(--gold-primary); background: #FDFAF3; box-shadow: 0 0 0 3px rgba(180, 140, 35, 0.1); }
.rpj-textarea-sm { min-height: 85px !important; }

/* ── AI ASSIST (Brique 2 — future) ── */
.rpj-ai-assist { display: flex; align-items: center; gap: 9px; margin-top: 0.65rem; padding: 0.6rem 0.9rem; background: rgba(180, 140, 35, 0.05); border: 1px solid rgba(180, 140, 35, 0.18); border-radius: 6px; cursor: not-allowed; transition: all 0.2s; opacity: 0.7; }
.rpj-ai-badge { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 3px; background: var(--gold-btn); color: #fff; }
.rpj-ai-text { font-size: 0.76rem; color: var(--gold-primary); font-weight: 500; }
.rpj-ai-future { margin-left: auto; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }

/* ── REQUIREMENTS ── */
.rpj-req-grid { display: grid; gap: 0.9rem; }
.rpj-req-row { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: center; }
.rpj-req-label { font-size: 0.78rem; font-weight: 500; color: var(--ink-mid); text-transform: none; letter-spacing: 0; }

/* ── CHIPS ── */
.rpj-chips-container { display: flex; flex-wrap: wrap; gap: 7px; }
.rpj-chip { padding: 5px 13px; border-radius: 100px; font-size: 0.73rem; font-weight: 500; border: 1px solid var(--border-line); background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.18s; font-family: 'Geist', sans-serif; }
.rpj-chip:hover, .rpj-chip.rpj-selected { border-color: var(--gold-primary); color: var(--gold-primary); background: rgba(180, 140, 35, 0.07); }

/* ── TAG INPUT (benefits / tags JSON) ── */
.rpj-taginput { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; background: var(--bg); border: 1px solid var(--border-line); border-radius: 6px; padding: 0.5rem 0.6rem; transition: border-color 0.22s, box-shadow 0.22s; }
.rpj-tagpills { display: contents; }
.rpj-taginput:focus-within { border-color: var(--gold-primary); background: #FDFAF3; box-shadow: 0 0 0 3px rgba(180, 140, 35, 0.1); }
.rpj-taginput-field { flex: 1; min-width: 120px; border: none !important; background: transparent !important; padding: 0.25rem !important; box-shadow: none !important; }
.rpj-taginput-field:focus { box-shadow: none !important; background: transparent !important; }
.rpj-tagpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 0.73rem; font-weight: 500; background: rgba(180, 140, 35, 0.08); border: 1px solid rgba(180, 140, 35, 0.25); color: var(--gold-primary); }
.rpj-tagpill button { border: none; background: none; color: var(--gold-primary); cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 0; }

/* ── DIVIDER ── */
.rpj-gold-rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(180, 140, 35, 0.25), transparent); margin: 1.75rem 0; }

/* ── SIDEBAR ── */
.rpj-sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 88px; }

/* ── PREVIEW CARD ── */
.rpj-preview-card { background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.rpj-preview-header { padding: 1.25rem 1.5rem 0; display: flex; align-items: center; justify-content: space-between; }
.rpj-preview-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); }
.rpj-live-dot { display: flex; align-items: center; gap: 5px; font-size: 0.63rem; color: #5BBF6F; font-weight: 600; letter-spacing: 0.08em; }
.rpj-live-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #5BBF6F; animation: rpjPulse 2s infinite; }
@keyframes rpjPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
.rpj-preview-body { padding: 1.25rem 1.5rem 1.5rem; }
.rpj-preview-establishment { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 0.4rem; }
.rpj-preview-job-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 0.9rem; line-height: 1.2; }
.rpj-preview-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.9rem; }
.rpj-preview-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.07em; padding: 3px 9px; border-radius: 100px; background: var(--bg-subtle); border: 1px solid var(--border-line); color: var(--text-muted); text-transform: uppercase; }
.rpj-preview-desc { font-family: 'Geist', system-ui, sans-serif; font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.rpj-preview-rule { height: 1px; background: var(--border-line); margin: 1rem 0; }
.rpj-preview-footer { display: flex; align-items: center; justify-content: space-between; }
.rpj-prestige-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-right: 8px; }
.rpj-prestige-stars { display: inline-flex; gap: 3px; }
.rpj-star { width: 7px; height: 7px; border-radius: 50%; background: var(--border-line); }
.rpj-star.rpj-active { background: var(--gold-gradient); }
.rpj-prestige-count { font-size: 0.68rem; color: var(--text-light); }

/* ── REACH CARD ── */
.rpj-reach-card { background: linear-gradient(135deg, #FFFBF0 0%, #FDF6E0 100%); border: 1px solid rgba(180, 140, 35, 0.25); border-radius: 12px; padding: 1.6rem; box-shadow: 0 2px 12px rgba(180, 140, 35, 0.08); }
.rpj-reach-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 0.2rem; }
.rpj-reach-sub { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 1.1rem; letter-spacing: 0.03em; }
.rpj-reach-stat { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid rgba(180, 140, 35, 0.1); }
.rpj-reach-stat:last-child { border-bottom: none; }
.rpj-reach-stat-label { font-size: 0.73rem; color: var(--text-muted); }
.rpj-reach-stat-val { font-size: 0.78rem; font-weight: 600; color: var(--gold-primary); }

/* ── TIPS CARD ── */
.rpj-tips-card { background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 12px; padding: 1.6rem; box-shadow: var(--shadow-sm); }
.rpj-tips-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 8px; }
.rpj-tips-title::after { content: ''; flex: 1; height: 1px; background: var(--border-line); }
.rpj-tip-item { display: flex; gap: 11px; margin-bottom: 0.9rem; align-items: flex-start; }
.rpj-tip-item:last-child { margin-bottom: 0; }
.rpj-tip-num { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.75rem; color: var(--gold-primary); opacity: 0.55; min-width: 13px; padding-top: 1px; }
.rpj-tip-text { font-size: 0.77rem; color: var(--text-muted); line-height: 1.55; }
.rpj-tip-text strong { color: var(--ink-mid); font-weight: 600; }

/* ── SUBMIT BUTTONS ── */
.rpj-submit-full { width: 100%; justify-content: center; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; }
.rpj-draft-full { width: 100%; justify-content: center; margin-top: 0.65rem; }

/* ── ANIMATIONS ── */
@keyframes rpjFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rpj-page-header { animation: rpjFadeUp 0.5s ease both; }
.rpj-mode-toggle { animation: rpjFadeUp 0.5s 0.08s ease both; }
.rpj-main { animation: rpjFadeUp 0.5s 0.16s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .rpj-main { grid-template-columns: 1fr; }
  .rpj-sidebar { position: static; }
  .rpj-mode-toggle { flex-direction: column; }
  .rpj-mode-card { max-width: none; }
  .rpj-req-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (max-width: 600px) {
  .rpj-form-grid-2 { grid-template-columns: 1fr; }
  .rpj-page-title { font-size: 2rem; }
}
