/* Module : recrutement */
.job-back { text-decoration: none; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.job-back:hover { text-decoration: underline; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.job-tags li { padding: 5px 12px; border-radius: 99px; background: var(--sand); color: var(--ink-2); font-size: .85rem; font-weight: 500; border: 1px solid var(--line); }

.job-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job-why .value { border: 1px solid var(--line); }

.job-list { display: grid; gap: 14px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.job-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.job-card .job-tags { margin: 0; }

.job-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.job-detail h3 { font-size: 1.2rem; margin-top: 1.6em; }
.job-detail h3:first-child { margin-top: 0; }
.job-detail .ticks li { color: var(--ink-2); }
.job-date { font-size: .88rem; color: var(--ink-3); margin: 1.5em 0 0; }
.job-apply { position: sticky; top: calc(var(--header-h) + 16px); }
.job-form-wrap { max-width: 820px; }
.job-form h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

.job-files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.job-layout .job-files { grid-template-columns: 1fr; }
.job-file {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 2px dashed var(--line); border-radius: 16px; background: var(--cream); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.job-file:hover, .job-file.is-filled { border-color: var(--brand-blue); }
.job-file.is-filled { border-style: solid; }
.job-file.has-error { border-color: var(--err); }
.job-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.job-file > .icon { flex: none; transform: rotate(-90deg); color: var(--brand-blue); }
.job-file span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.job-file small { color: var(--ink-3); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-file input:focus-visible ~ .icon { outline: 3px solid var(--sky-ink); border-radius: 4px; }

[data-theme="dark"] .job-file > .icon, [data-theme="dark"] .job-file:hover { color: var(--sky-ink); border-color: var(--sky-ink); }

@media (max-width: 860px) {
  .job-layout, .job-why { grid-template-columns: 1fr; }
  .job-apply { position: static; }
}
@media (max-width: 600px) { .job-files { grid-template-columns: 1fr; } }
