/* 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: var(--gold-primary);
  --gold-light: var(--gold-300);
  --gold-glow: var(--gold-200);
  --gold-gradient: var(--gold-fill);
  --gold-btn: var(--gold-fill);
  --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; }
/* R5 (revue Loïc 06/08) — repris à l'identique de la maquette : dégradé 100deg
   qui finit foncé, et padding/marge droite contre les lettres rognées. */
.rpj-page-title em { font-style: italic; display: inline-block; padding-right: .14em; margin-right: -.14em; background: var(--gold-text-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.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, var(--gold-primary), var(--gold-300)); }
.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; }
/* Retour client 06/08 (Loïc) — « problème CSS sur les titres » : le R8 du
   02/07 (77624c3) avait passé les titres de blocs en doré 1.45rem/800, ce qui
   fait trois niveaux de doré empilés dans le même en-tête (numéro, titre,
   libellés de champs) et jure avec le reste du formulaire. La maquette B3
   `/mockups/recruiter/post_job` est plus récente que ce retour : c'est elle qui
   tranche, on revient à son encre 1.2rem/700. Les deux pages (post_job et
   positions/:id/edit) partagent ce partial, la correction vaut pour les deux. */
.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; text-shadow: var(--on-gold-shadow); }
.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; }
/* Feature #1628 — rangée langues : pills multi-lignes, libellé aligné en haut */
.rpj-req-row-chips { align-items: start; }
.rpj-req-row-chips .rpj-req-label { padding-top: 5px; }
.rpj-chip-flag { margin-right: 2px; }

/* ── 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); }

/* Features #1625/#1630/#1628 — chip « Autre » + input de valeurs personnalisées */
.rpj-chip-other { border-style: dashed; }
.rpj-chips-other { display: none; margin-top: 8px; }
.rpj-chips-other.rpj-show { display: block; }
.rpj-chips-other input[type="text"] { max-width: 340px; }

/* ── 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; }
/* Feature #1624 — suggestions d'avantages cliquables sous le tag input */
.rpj-sug-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.rpj-sug-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); margin-right: 2px; }

/* ── 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); }
/* Dégradé du titre : celui de la maquette (il FINIT foncé). `--gold-gradient`
   finit sur le jeton le plus clair de l'échelle, ce qui rend un nombre court
   quasi invisible sur le fond crème. Padding/marge droite : lettres non
   rognées (même correctif que le titre de page). */
.rpj-reach-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; background: var(--gold-text-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; display: inline-block; padding-right: .14em; margin-right: -.14em; 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 ── */
/* Bug #1631 (17/07) — le bouton était écrit en sombre sur le beige clair de
   .ds-btn-gold : on l'avait basculé sur --ds-grad-gold-dark + texte blanc.
   Depuis, 0b306b5 (20/07) a passé TOUS les .ds-btn-gold de l'app en blanc, et
   design_tokens.css verrouille la règle blanc-sur-gold : l'override n'a plus de
   raison d'être, il ne faisait plus que donner à ce bouton un doré plus foncé
   que le CTA « Publier une offre » de la navbar et que la maquette.
   Retour client 06/08 (Loïc, « le bouton de soumission non plus [n'est
   identique] ») : on rend la main à .ds-btn-gold (--ds-grad-brown-btn + blanc),
   exactement le rendu de /mockups/recruiter/post_job. Ne restent ici que les
   réglages propres au bouton pleine largeur de la maquette. */
.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; }
}
/* R10 — champ « Autre » (intitulé libre), révélé quand l'option Autre est choisie */
.rpj-title-other{display:none;margin-top:0.6rem;}
.rpj-title-other.rpj-show{display:block;}
/* R11 — fourchette de salaire (deux champs min–max) */
.rpj-salary-range{display:flex;align-items:center;gap:0.6rem;}
.rpj-salary-range input{flex:1;min-width:0;}
.rpj-salary-dash{color:var(--text-muted);font-weight:600;flex-shrink:0;}

/* #1856 — Visuel de l'annonce : banque d'images libres de droit (radios) +
   téléversement de sa propre photo. Repris du bloc `rpj-visuals` de la maquette
   post_job ; la sélection est un vrai état de formulaire (input:checked), pas
   du JS. */
.rpj-visuals { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.rpj-visual { position: relative; display: block; padding: 0; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; border-radius: 10px; border: 2px solid var(--border-line); background: var(--bg-subtle); transition: border-color 0.18s ease, transform 0.18s ease; }
.rpj-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpj-visual:hover { border-color: var(--gold-primary); transform: translateY(-1px); }
.rpj-visual-input, .rpj-visual-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rpj-visual:has(.rpj-visual-input:checked) { border-color: var(--gold-primary); box-shadow: 0 2px 10px rgba(184, 145, 42, 0.22); }
.rpj-visual:has(.rpj-visual-input:focus-visible) { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.rpj-visual-check { position: absolute; top: 6px; right: 6px; width: 19px; height: 19px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-primary), var(--gold-500)); color: #fff; text-shadow: 0 1px 2px rgba(60, 44, 10, 0.45); }
.rpj-visual:has(.rpj-visual-input:checked) .rpj-visual-check { display: flex; }
.rpj-visual-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-style: dashed; color: var(--text-light); font-size: 0.68rem; font-weight: 600; text-align: center; padding: 6px; }
/* Demande Loïc 13/08 — la vignette « Ma photo » ne disait rien du fichier choisi
   (le champ est masqué, donc même le « 1 file » du navigateur disparaissait) :
   on ne savait qu'après publication si la bonne image était partie. Et le focus
   clavier du champ fichier n'avait pas d'anneau, contrairement aux radios de la
   banque d'images juste à côté. */
.rpj-visual:has(.rpj-visual-file:focus-visible) { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.rpj-visual-upload:has(.rpj-visual-file) .rpj-visual-filename { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.62rem; font-weight: 700; color: var(--gold-deep); }
.rpj-visual-filename:empty { display: none; }
/* Photo déjà téléversée : vignette + case « retirer » (sinon le recruteur ne
   pourrait plus revenir à une image de la banque). */
.rpj-visual-current { display: flex; align-items: center; gap: 12px; margin-top: 0.7rem; }
.rpj-visual-current img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-line); }
.rpj-visual-remove { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--text-muted); cursor: pointer; }
.rpj-visual-note { 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; }

/* ── Erreurs de validation (audit du 07/08) ──────────────────────────────
   Une soumission invalide repartait en 422 sans rien afficher pres des
   champs : le seul retour etait un flash hors ecran. Recapitulatif en tete
   du panneau + marquage du champ fautif. `.field_with_errors` est
   l'enveloppe que Rails pose automatiquement autour du label et du champ
   en erreur ; elle n'avait aucun style dans tout le projet. */
.rpj-form-errors {
  margin-bottom: 1.4rem;
  padding: 0.85rem 1.1rem;
  background: rgba(179, 38, 30, 0.05);
  border: 1px solid rgba(179, 38, 30, 0.22);
  border-left: 3px solid #b3261e;
  border-radius: 8px;
}
.rpj-form-errors-title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8c1d18;
}
.rpj-form-errors ul { margin: 0; padding-left: 1.1rem; }
.rpj-form-errors li {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #8c1d18;
}

.rpj-form-panel .field_with_errors { display: contents; }
.rpj-form-panel .field_with_errors input,
.rpj-form-panel .field_with_errors select,
.rpj-form-panel .field_with_errors textarea {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.03);
}
.rpj-form-panel .field_with_errors input:focus,
.rpj-form-panel .field_with_errors select:focus,
.rpj-form-panel .field_with_errors textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16);
}
.rpj-form-panel .field_with_errors label { color: #8c1d18; }

/* R7 — carte « Importer une fiche de poste ». La carte EST le formulaire
   d'upload : elle garde le gabarit de .rpj-mode-card en annulant les marges
   propres au <form>. Pendant l'analyse (OCR + extraction, quelques secondes)
   elle passe en attente et cesse de répondre au clic, sinon le recruteur
   reclique et relance un import. */
.rpj-mode-card.rpj-import { margin: 0; text-align: left; }
.rpj-import-file { font-weight: 600; color: var(--ink); }
.rpj-import-status { color: var(--gold-primary); }
.rpj-mode-card.rpj-import.is-analyzing { pointer-events: none; opacity: 0.75; }
