/* Offres d'emploi : bouton de l'en-tête et fenêtre d'inscription aux alertes. */
.btn-icon { width: 1.05em; height: 1.05em; flex: none; }

.jobs-dialog { width: min(560px, calc(100% - 2rem)); max-height: min(92vh, 860px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 70px -20px rgba(2, 48, 71, .55); overflow: hidden; }
.jobs-dialog[open] { display: flex; flex-direction: column; animation: jobs-in .18s ease-out; }
.jobs-dialog::backdrop { background: rgba(2, 30, 45, .55); backdrop-filter: blur(2px); }
.jobs-dialog [hidden] { display: none !important; }
@keyframes jobs-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .jobs-dialog[open] { animation: none; } }

.jobs-form { display: flex; flex-direction: column; min-height: 0; padding: 0 1.4rem 1.3rem; overflow-y: auto; }
.jobs-form > div:not(.jobs-done) { display: grid; gap: 1.1rem; }
.jobs-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 -1.4rem 1rem; padding: 1.1rem 1.4rem .9rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.jobs-head h2 { margin: 0; font-size: 1.25rem; }
.jobs-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.jobs-close:hover { background: #cfe3ec; }
.jobs-intro { margin: 0; }

.jobs-scope { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; }
.jobs-scope legend { padding: 0; margin-bottom: .4rem; font-weight: 600; }
.jobs-radio { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid #b6c6d0; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.jobs-radio:hover { border-color: var(--accent); }
.jobs-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.jobs-radio input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); }
.jobs-radio span { display: grid; gap: .1rem; }
.jobs-radio small { color: var(--muted); font-size: .88rem; }

.jobs-specific { display: grid; gap: 1rem; padding: 1rem; border-radius: 12px; background: #f4f8fa; border: 1px solid var(--border); }
.jobs-count { margin: 0; font-size: .85rem; }
.jobs-sub { margin: 0 0 .5rem; font-weight: 600; }
.jobs-list { display: grid; gap: .4rem; max-height: 15rem; overflow-y: auto; padding-right: .2rem; }

.jobs-branch { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.jobs-branch summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; cursor: pointer; font-weight: 600; list-style-position: inside; }
.jobs-branch summary:hover { background: var(--accent-soft); }
.jobs-branch[open] summary { border-bottom: 1px solid var(--border); }
.jobs-badge { min-width: 1.5rem; padding: .05rem .5rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; text-align: center; }
.jobs-check { display: flex; gap: .55rem; align-items: center; padding: .4rem .8rem; font-size: .93rem; cursor: pointer; }
.jobs-check:hover { background: #f4f8fa; }
.jobs-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.jobs-check input:disabled + * { opacity: .5; }
.jobs-check-all { font-weight: 600; color: var(--accent); }

/* Champ piège anti-robots : sorti de l'écran, jamais vu ni lu par une personne. */
.jobs-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jobs-error { margin: 0; padding: .65rem .85rem; border-radius: 10px; background: var(--err-bg); color: var(--err); font-weight: 500; }
.jobs-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.jobs-done { display: grid; justify-items: center; gap: 1rem; padding: 1.5rem .5rem .5rem; text-align: center; }
.jobs-done-text { margin: 0; font-size: 1.05rem; max-width: 30rem; }
.jobs-done-text:focus { outline: none; }

@media (max-width: 520px) {
    .jobs-dialog { width: calc(100% - 1rem); max-height: 94vh; border-radius: 16px; }
    .jobs-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 860px) {
    .main-nav [data-job-open] { width: 100%; padding: .75rem; }
}
