/* =====================================================================
   JM RADIO — recrutement.css : page Recrutement (candidature)
   ===================================================================== */
.rc-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1180px; }
.rc-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.rc-box { padding: 18px; border-radius: 20px; background: var(--jm-panel, rgba(12,16,27,.78)); border: 1px solid var(--jm-border, rgba(255,255,255,.07)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rc-box h2 { margin: 0 0 14px; font-size: 1rem; font-weight: 800; color: #fff; }
.rc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.rc-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.rc-steps li:last-child { padding-bottom: 0; }
.rc-steps li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: rgba(251, 191, 36, 0.25); }
.rc-steps li > span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; color: #111; background: var(--gradient-gold); }
.rc-steps b { display: block; color: #fff; font-size: 0.9rem; }
.rc-steps small { display: block; color: var(--text-secondary); font-size: 0.78rem; line-height: 1.45; margin-top: 1px; }
.rc-perks { display: flex; flex-direction: column; gap: 14px; }
.rc-perk { display: flex; gap: 12px; }
.rc-perk i { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(251, 191, 36, 0.12); color: var(--gold); font-size: 0.9rem; }
.rc-perk b { display: block; color: #fff; font-size: 0.88rem; }
.rc-perk span { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; }

.rc-card { padding: 24px; border-radius: var(--jm-radius, 22px); background: var(--jm-panel, rgba(12,16,27,.78)); border: 1px solid var(--jm-border, rgba(255,255,255,.07)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.rc-card-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 10px; }
.rc-card-head h2 i { color: var(--gold); }
.rc-card-head p { margin: 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.5; }
.rc-progress { flex: none; width: 150px; text-align: right; }
.rc-progress span { font-size: 0.78rem; font-weight: 800; color: var(--gold); }
.rc-progress-bar { height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rc-progress-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--gradient-gold); transition: width .3s ease; }

.rec-section { padding: 18px; margin-bottom: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.06); }
.rec-section h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.rc-num { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; color: var(--gold); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rec-full { grid-column: 1 / -1; }
.rec-stack { display: flex; flex-direction: column; gap: 14px; }
.rec-field label { display: block; font-size: 0.82rem; font-weight: 700; color: #CBD5E1; margin-bottom: 7px; }
.rec-field input, .rec-field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(7, 10, 18, 0.7); color: #F8FAFC; font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.rec-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.rec-field input::placeholder, .rec-field textarea::placeholder { color: #4B5563; }
.rec-field input:focus, .rec-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.rec-field .hint { font-size: 0.76rem; color: var(--text-secondary); margin-top: 6px; }
.rec-field .err { display: none; color: #F87171; font-size: 0.8rem; font-weight: 700; margin-top: 6px; }
.rec-field.invalid input, .rec-field.invalid textarea { border-color: #EF4444; }
.rec-field.invalid .err { display: block; }

.rec-choice { padding: 14px; border-radius: 14px; background: rgba(7, 10, 18, 0.5); border: 1px solid rgba(255, 255, 255, 0.06); }
.rec-q { display: block; font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: 10px; }
.rec-radios { display: inline-flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.rec-radios label { position: relative; cursor: pointer; }
.rec-radios input { position: absolute; opacity: 0; pointer-events: none; }
.rec-radios label span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 0.86rem; font-weight: 700; color: #94A3B8; transition: all .15s ease; }
.rec-radios label:hover span { color: #fff; }
.rec-radios input:checked + span { background: var(--gradient-gold); color: #111; }
.rec-radios input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rec-sub { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.rec-sub.open { display: block; animation: rcIn .2s ease; }
@keyframes rcIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.rec-submit { text-align: center; padding-top: 6px; }
.rec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px; border: 0; border-radius: 14px; background: var(--gradient-gold); color: #111; font-family: inherit; font-size: 1rem; font-weight: 900; cursor: pointer; text-decoration: none; box-shadow: 0 10px 24px rgba(251, 191, 36, 0.3); transition: transform .2s ease, box-shadow .2s ease; }
.rec-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(251, 191, 36, 0.45); }
.rec-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.rec-msg { margin-top: 14px; font-weight: 700; font-size: 0.92rem; line-height: 1.5; }
.rec-msg.error { color: #F87171; }
.rec-consent { margin: 14px auto 0; max-width: 560px; font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.rec-consent a { color: var(--gold); }

/* Écran de confirmation */
.rec-success { text-align: center; padding: 40px 18px; }
.rec-success .ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff; background: #10B981; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
.rec-success h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 900; color: #fff; }
.rec-success p { max-width: 560px; margin: 0 auto 18px; color: var(--text-secondary); line-height: 1.6; }
.rec-link { display: block; margin-top: 12px; font-size: 0.8rem; color: #94A3B8; word-break: break-all; }

@media (max-width: 1100px) {
    .rc-layout { grid-template-columns: minmax(0, 1fr); }
    .rc-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .rc-aside { grid-template-columns: minmax(0, 1fr); }
    .rc-card { padding: 16px; }
    .rc-card-head { flex-direction: column; gap: 10px; }
    .rc-progress { width: 100%; text-align: left; }
    .rec-section { padding: 14px; }
    .rec-grid { grid-template-columns: minmax(0, 1fr); }
    .rec-radios { display: flex; }
    .rec-radios label { flex: 1; }
    .rec-radios label span { width: 100%; }
    .rec-btn { width: 100%; }
}

/* ---------- v2 : vérification de l'e-mail + écran de confirmation ---------- */
.rec-verify { text-align: center; padding: 30px 10px 10px; animation: rcIn .25s ease; }
.rec-verify-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #111; background: var(--gradient-gold); box-shadow: 0 12px 28px rgba(251, 191, 36, 0.3); }
.rec-verify h2 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 900; color: #fff; }
.rec-verify > p { max-width: 520px; margin: 0 auto 20px; color: var(--text-secondary); line-height: 1.6; }
.rec-verify > p b { color: #fff; word-break: break-all; }
.rec-verify-form { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rec-code { width: 260px; max-width: 100%; height: 64px; box-sizing: border-box; text-align: center; font-family: 'Courier New', monospace; font-size: 2rem; font-weight: 800; letter-spacing: 12px; padding-left: 12px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.14); background: rgba(7, 10, 18, 0.7); color: #fff; outline: none; }
.rec-code:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18); }
.rec-verify-tips { max-width: 520px; margin: 22px auto 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }
.rec-verify-tips p { margin: 0 0 10px; }
.rec-verify-tips i { color: var(--gold); margin-right: 4px; }
.rec-verify-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rec-link-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: #E2E8F0; font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.rec-link-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.rec-link-btn:disabled { opacity: .5; cursor: default; }
.rec-msg.ok { color: #34D399; }
.rec-ids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin: 6px auto 16px; }
.rec-id { position: relative; padding: 14px 44px 14px 16px; border-radius: 16px; text-align: left; background: rgba(251, 191, 36, 0.08); border: 1px dashed rgba(251, 191, 36, 0.45); }
.rec-id small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); }
.rec-id b { display: block; margin-top: 4px; font-family: 'Courier New', monospace; font-size: 1.25rem; letter-spacing: 1.5px; color: #fff; }
.rec-copy { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--gold); cursor: pointer; }
.rec-small { font-size: 0.84rem !important; }
.rec-small i { color: var(--gold); margin-right: 4px; }
.rec-success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.rec-btn.ghost { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); box-shadow: none; }
.rec-success p b { color: #fff; }
@media (max-width: 560px) { .rec-ids { grid-template-columns: minmax(0, 1fr); } .rec-code { letter-spacing: 8px; font-size: 1.7rem; } }

.theme-clair .rec-verify h2, .theme-clair .rec-verify > p b, .theme-clair .rec-success p b, .theme-clair .rec-id b { color: #0F172A; }
.theme-clair .rec-verify-ico { color: #fff; box-shadow: 0 12px 28px rgba(231, 37, 53, 0.25); }
.theme-clair .rec-code { background: #fff; color: #0F172A; border-color: rgba(15, 23, 42, 0.16); }
.theme-clair .rec-code:focus { box-shadow: 0 0 0 4px rgba(231, 37, 53, 0.15); }
.theme-clair .rec-verify-tips { background: rgba(15, 23, 42, 0.03); border-color: rgba(15, 23, 42, 0.08); }
.theme-clair .rec-link-btn { color: #334155; border-color: rgba(15, 23, 42, 0.14); }
.theme-clair .rec-msg.ok { color: #047857; }
.theme-clair .rec-id { background: rgba(231, 37, 53, 0.05); border-color: rgba(231, 37, 53, 0.4); }
.theme-clair .rec-copy { background: rgba(15, 23, 42, 0.06); }
.theme-clair .rec-btn.ghost { background: transparent; color: var(--gold); box-shadow: none; }

/* =====================================================================
   Choix du poste (01/11/2026) : postes ouverts gérés dans /gestion
   ===================================================================== */
.rec-pick h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.05rem; font-weight: 900; color: #fff; }
.rec-pick-grid { display: grid; gap: 12px; }
.rec-pick-card { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; color: #F8FAFC; background: rgba(7, 10, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rec-pick-card:hover, .rec-pick-card:focus-visible { transform: translateY(-2px); border-color: rgba(251, 191, 36, 0.55); background: rgba(251, 191, 36, 0.06); outline: none; }
.rec-pick-ico { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem; color: #111; background: var(--gradient-gold, linear-gradient(135deg, #FBBF24, #D97706)); box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25); }
.rec-pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rec-pick-txt b { font-size: 1.05rem; font-weight: 900; }
.rec-pick-txt small { font-size: 0.86rem; color: var(--text-secondary, #94A3B8); line-height: 1.45; }
.rec-pick-go { color: var(--gold, #FBBF24); transition: transform .18s ease; }
.rec-pick-card:hover .rec-pick-go { transform: translateX(4px); }
.rec-pick-load, .rec-pick-empty { padding: 28px 16px; text-align: center; color: var(--text-secondary, #94A3B8); border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rec-pick-empty i { font-size: 1.6rem; color: var(--gold, #FBBF24); margin-bottom: 4px; }
.rec-pick-empty b { color: #fff; }
.rec-poste-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 999px; font-size: 0.84rem; color: #E2E8F0; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35); white-space: nowrap; align-self: center; }
.rec-poste-chip b { color: var(--gold, #FBBF24); }
.rec-poste-chip button { padding: 5px 10px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 800; color: #111; background: var(--gradient-gold, linear-gradient(135deg, #FBBF24, #D97706)); }
.rec-wide { grid-column: 1 / -1; }
.rec-field select { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(7, 10, 18, 0.7); color: #F8FAFC; font-size: 0.95rem; font-family: inherit; outline: none; }
.rec-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.rec-field.invalid select { border-color: #EF4444; }
.rec-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-checks label { position: relative; cursor: pointer; }
.rec-checks input { position: absolute; opacity: 0; pointer-events: none; }
.rec-checks span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 0.86rem; font-weight: 700; color: #CBD5E1; background: rgba(7, 10, 18, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); transition: all .15s ease; }
.rec-checks input:checked + span { color: #111; background: var(--gradient-gold, linear-gradient(135deg, #FBBF24, #D97706)); border-color: transparent; }
.rec-checks input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rec-field.invalid .rec-checks span { border-color: rgba(239, 68, 68, 0.6); }
html.theme-clair .rec-pick h3, html.theme-clair .rec-pick-empty b { color: #0F172A; }
html.theme-clair .rec-pick-card { color: #0F172A; background: #fff; border-color: rgba(15, 23, 42, 0.1); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
html.theme-clair .rec-pick-card:hover { background: #FFFBEB; }
html.theme-clair .rec-poste-chip { color: #334155; }
html.theme-clair .rec-poste-chip b { color: #B45309; }
html.theme-clair .rec-field select, html.theme-clair .rec-checks span { color: #0F172A; background: #fff; border-color: rgba(15, 23, 42, 0.15); }
@media (max-width: 760px) {
    .rc-card-head { flex-wrap: wrap; }
    .rec-pick-card { padding: 14px; gap: 12px; }
    .rec-pick-ico { width: 44px; height: 44px; font-size: 1.1rem; }
}
