/* EmploiTogo — feuille principale. Valeurs : public/css/tokens.css (voir DESIGN.md). */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink-900);
  font: 400 var(--fs-base)/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0 0 var(--s-3); line-height: 1.2; color: var(--ink-900); }
h1, h2, .serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--s-4); }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-500); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); margin-bottom: var(--s-2); display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; background: var(--ink-900); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: var(--s-2); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-8); flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: var(--s-2) 0 0; color: var(--ink-700); max-width: 56ch; }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 44px; padding: 0 var(--s-5); border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 var(--fs-sm)/1 var(--font-ui); cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  text-decoration: none !important;
}
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); }
.btn--secondary { background: var(--surface); color: var(--ink-900); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink-300); background: #FBFAF7; }
.btn--quiet { background: transparent; color: var(--green-700); padding: 0 var(--s-2); }
.btn--quiet:hover { background: var(--green-50); }
.btn--danger { background: var(--surface); color: var(--red-600); border-color: #EBC3CA; }
.btn--danger:hover { background: var(--red-50); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: #2C3043; }
.btn--sm { height: 36px; padding: 0 var(--s-3); font-size: var(--fs-xs); }
.btn--lg { height: 52px; padding: 0 var(--s-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink-700); cursor: pointer; }
.btn-icon:hover { color: var(--green-700); border-color: var(--green-100); }
.btn-icon.is-active { color: var(--green-700); background: var(--green-50); border-color: var(--green-100); }
.btn-icon.is-active .icon { fill: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 600; font-size: var(--fs-sm); }

/* ── Formulaires ──────────────────────────────────────────── */
.field { display: block; margin-bottom: var(--s-5); }
.field > label, .label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s-2); color: var(--ink-900); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-500); margin-top: var(--s-1); }
.field .error, .error-text { font-size: var(--fs-sm); color: var(--red-600); margin-top: var(--s-1); }
.req { color: var(--red-600); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-900); font: 400 var(--fs-base) var(--font-ui);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: var(--s-3); line-height: 1.55; resize: vertical; }
.textarea--tall { min-height: 260px; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6F80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder, .textarea::placeholder { color: var(--ink-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-700); box-shadow: var(--focus-ring); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red-600); }
input[type=file].input { padding: 9px var(--s-3); height: auto; font-size: var(--fs-sm); }
.check { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green-700); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line); margin-top: var(--s-2); }
.fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); margin: 0 0 var(--s-6); background: var(--surface); }
.fieldset > legend { padding: 0 var(--s-2); font-weight: 600; font-size: var(--fs-sm); }
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-6); }
.choice-card { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); background: var(--surface); cursor: pointer; display: flex; gap: var(--s-3); align-items: flex-start; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { display: block; font-size: var(--fs-sm); }
.choice-card span { font-size: var(--fs-xs); color: var(--ink-500); }
.choice-card .icon { color: var(--ink-500); margin-top: 2px; }
.choice-card:has(input:checked) { border-color: var(--green-700); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-700); }
.choice-card:has(input:checked) .icon { color: var(--green-700); }
.choice-card:has(input:focus-visible) { box-shadow: var(--focus-ring); }

/* ── Badges, puces, statuts ───────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: var(--s-1); height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: #F1EFE8; color: var(--ink-700); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.chip--green { background: var(--green-50); color: var(--green-800); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.badge-sun { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--sun-400); color: var(--ink-900); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; color: var(--ink-700); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.status--success { color: var(--green-800); } .status--success::before { background: var(--green-700); }
.status--warning { color: var(--amber-600); } .status--warning::before { background: #E39A1B; }
.status--danger { color: var(--red-600); } .status--danger::before { background: var(--red-600); }
.status--muted { color: var(--ink-500); } .status--muted::before { background: var(--ink-500); }

/* ── Messages ─────────────────────────────────────────────── */
.flash { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-sm); margin-bottom: var(--s-5); border: 1px solid; }
.flash .icon { margin-top: 1px; }
.flash--success { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); }
.flash--error { background: var(--red-50); border-color: #F1CBD2; color: var(--red-600); }
.flash--info { background: var(--sun-50); border-color: #F1E2A6; color: #6B5300; }
.flash ul { margin: var(--s-1) 0 0; padding-left: 1.1em; }
.notice { background: var(--surface); border: 1px dashed var(--ink-300); border-radius: var(--r-md); padding: var(--s-5); color: var(--ink-700); font-size: var(--fs-sm); }

/* ── En-tête ──────────────────────────────────────────────── */
.topbar { background: var(--ink-900); color: var(--ink-300); font-size: var(--fs-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 36px; }
.topbar a { color: #fff; }
.topbar__switch { display: flex; gap: var(--s-1); }
.topbar__switch a { padding: 4px 10px; border-radius: var(--r-pill); color: var(--ink-300); }
.topbar__switch a.is-active, .topbar__switch a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
@media (max-width: 620px) { .topbar__contact { display: none; } }

.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .container { display: flex; align-items: center; gap: var(--s-6); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-900); text-decoration: none !important; flex: none; }
.brand img { height: 46px; width: auto; }
.brand__name { font: 700 1.15rem/1 var(--font-ui); letter-spacing: -.01em; }
.brand__name span { color: var(--green-700); }
.nav { display: flex; gap: var(--s-1); align-items: center; }
.nav a { color: var(--ink-700); font-size: var(--fs-sm); font-weight: 500; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink-900); background: #F4F2EC; text-decoration: none; }
.nav a.is-current { color: var(--green-700); background: var(--green-50); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.nav-toggle { display: none; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-2); padding: 4px; border-radius: var(--r-pill); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary, .account-menu summary:hover { background: #F4F2EC; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.1rem; }
.avatar--xl { width: 88px; height: 88px; font-size: 1.4rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: var(--s-2); z-index: 50; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); color: var(--ink-700); font: 500 var(--fs-sm) var(--font-ui); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: #F4F2EC; color: var(--ink-900); text-decoration: none; }
.dropdown__head { padding: var(--s-2) var(--s-3) var(--s-3); border-bottom: 1px solid var(--line); margin-bottom: var(--s-2); }
.dropdown__head strong { display: block; font-size: var(--fs-sm); }
.dropdown__head span { font-size: var(--fs-xs); color: var(--ink-500); }
.bell { position: relative; }
.bell__dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill); background: var(--red-600); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

@media (max-width: 1060px) {
  .nav, .header__actions .hide-md { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav.is-open { display: flex; position: fixed; inset: 72px 0 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: var(--s-4) var(--gutter); gap: var(--s-1); z-index: 45; overflow-y: auto; }
  .nav.is-open a { font-size: var(--fs-base); padding: var(--s-3); }
  .nav__mobile-only { display: block !important; }
}
.nav__mobile-only { display: none; }

/* ── Pied de page ─────────────────────────────────────────── */
.footer { background: var(--ink-band); color: var(--ink-300); font-size: var(--fs-sm); margin-top: var(--s-16); }
.footer a { color: var(--ink-300); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-10); padding: var(--s-16) 0 var(--s-10); }
.footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer__brand p { max-width: 34ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: var(--s-5) 0; display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); }
.footer__news { display: flex; gap: var(--s-2); margin-top: var(--s-4); max-width: 360px; }
.footer__news .input { background: #2A2E40; border-color: #3A3F55; color: #fff; height: 40px; }
.footer__news .btn { height: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Accueil ──────────────────────────────────────────────── */
.hero { position: relative; padding: var(--s-16) 0 var(--s-12); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-12); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.05; margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 68%, rgba(242,194,0,.55) 68%, rgba(242,194,0,.55) 92%, transparent 92%); }
.hero__lead { font-size: var(--fs-lg); color: var(--ink-700); max-width: 48ch; margin-bottom: var(--s-8); }
.hero__visual { position: relative; aspect-ratio: 4 / 4.4; }
.hero__slide { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; opacity: 0; transition: opacity .8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide figcaption { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); background: rgba(255,255,255,.94); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); box-shadow: var(--shadow-1); }
.hero__slide figcaption strong { display: block; font-size: var(--fs-base); }
.hero__dots { position: absolute; top: var(--s-4); right: var(--s-4); display: flex; gap: 6px; z-index: 2; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: #fff; width: 22px; border-radius: var(--r-pill); }
.hero__badge { position: absolute; left: calc(var(--s-6) * -1); top: var(--s-10); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: var(--s-3) var(--s-4); display: flex; gap: var(--s-3); align-items: center; z-index: 3; }
.hero__badge strong { font: 600 1.35rem/1 var(--font-display); display: block; }
.hero__badge span { font-size: var(--fs-xs); color: var(--ink-500); }
.hero__badge .icon-wrap { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
@media (max-width: 960px) {
  .hero { padding-top: var(--s-10); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero__visual { aspect-ratio: 16 / 10; }
  .hero__badge { left: var(--s-3); top: auto; bottom: calc(var(--s-6) * -1); }
}

.search { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 6px; gap: 6px; }
.search__field { flex: 1; display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3); min-width: 0; }
.search__field + .search__field { border-left: 1px solid var(--line); }
.search__field .icon { color: var(--ink-500); }
.search__field input, .search__field select { border: 0; outline: 0; background: transparent; height: 46px; width: 100%; font: 400 var(--fs-base) var(--font-ui); color: var(--ink-900); min-width: 0; appearance: none; }
.search .btn { height: 50px; padding: 0 var(--s-6); }
@media (max-width: 720px) {
  .search { flex-direction: column; }
  .search__field + .search__field { border-left: 0; border-top: 1px solid var(--line); }
}
.hero__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-500); }
.hero__tags a { color: var(--ink-700); border-bottom: 1px solid var(--line); }
.hero__tags a:hover { color: var(--green-700); text-decoration: none; border-color: var(--green-700); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: var(--s-12); }
.figures > div { padding: var(--s-6) var(--s-5) 0 0; }
.figures strong { display: block; font: 500 2.25rem/1 var(--font-display); margin-bottom: var(--s-2); }
.figures span { font-size: var(--fs-sm); color: var(--ink-500); }
@media (max-width: 720px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.door { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-8); color: #fff; isolation: isolate; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,22,32,.2) 0%, rgba(20,22,32,.72) 38%, rgba(20,22,32,.92) 100%); }
.door--green::after { background: linear-gradient(180deg, rgba(8,83,42,.25) 0%, rgba(8,83,42,.8) 38%, rgba(8,83,42,.96) 100%); }
.door { min-height: 380px; }
.door h3 { color: #fff; font: 500 1.75rem/1.15 var(--font-display); margin-bottom: var(--s-2); }
.door p { color: rgba(255,255,255,.86); max-width: 40ch; }
.door ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: 6px; font-size: var(--fs-sm); }
.door li { display: flex; gap: var(--s-2); align-items: center; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { min-height: 280px; padding: var(--s-6); } }

.browse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.browse__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); }
.browse__col h3 { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.browse__col ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.browse__col li a { display: flex; justify-content: space-between; gap: var(--s-3); padding: 9px 0; border-bottom: 1px solid #F0EEE7; color: var(--ink-700); font-size: var(--fs-sm); }
.browse__col li:last-child a { border-bottom: 0; }
.browse__col li a:hover { color: var(--green-700); text-decoration: none; }
.browse__col li a span:last-child { color: var(--ink-500); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .browse { grid-template-columns: 1fr; } }

.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.logo-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); height: 96px; display: grid; place-items: center; padding: var(--s-4); transition: border-color .15s, box-shadow .15s; }
.logo-tile:hover { border-color: var(--ink-300); box-shadow: var(--shadow-1); }
.logo-tile img { max-height: 54px; width: auto; object-fit: contain; }
.logo-tile__text { font-weight: 700; color: var(--ink-700); text-align: center; font-size: var(--fs-sm); }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.band { background: var(--green-700); color: #fff; border-radius: var(--r-lg); padding: var(--s-10); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-8); align-items: center; }
.band h2 { color: #fff; margin-bottom: var(--s-2); }
.band p { color: rgba(255,255,255,.86); margin: 0; }
.band form { display: flex; gap: var(--s-2); }
.band .input { border-color: transparent; }
.band .btn--dark { height: 44px; }
.band--dark { background: var(--ink-band); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: var(--s-8) var(--s-6); } .band form { flex-direction: column; } }

/* ── Carte d'offre ────────────────────────────────────────── */
.job-list { display: grid; gap: var(--s-3); }
.job { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); transition: border-color .15s, box-shadow .15s; }
.job:hover { border-color: var(--ink-300); box-shadow: var(--shadow-1); }
.job--featured { background: var(--sun-50); border-color: #EEDC93; }
.job__logo { width: 56px; height: 56px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--ink-700); font-size: var(--fs-sm); }
.job__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job__title { font: 600 var(--fs-h3)/1.3 var(--font-ui); margin: 0 0 var(--s-1); }
.job__title a { color: var(--ink-900); }
.job__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.job__title a:hover { text-decoration: none; color: var(--green-700); }
.meta { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); font-size: var(--fs-sm); color: var(--ink-500); }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta strong { color: var(--ink-700); font-weight: 600; }
.job__excerpt { font-size: var(--fs-sm); color: var(--ink-700); margin: var(--s-3) 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); position: relative; z-index: 1; text-align: right; }
.job__side .chips { justify-content: flex-end; }
.job .chips { margin-top: var(--s-3); position: relative; z-index: 1; }
@media (max-width: 640px) {
  .job { grid-template-columns: 44px minmax(0, 1fr); padding: var(--s-4); }
  .job__logo { width: 44px; height: 44px; }
  .job__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}

/* ── Page des offres ──────────────────────────────────────── */
.page-head { padding: var(--s-10) 0 var(--s-8); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: var(--s-2); }
.page-head p { color: var(--ink-700); margin: 0; max-width: 62ch; }
.crumbs { display: flex; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-500); margin-bottom: var(--s-3); flex-wrap: wrap; }
.crumbs a { color: var(--ink-500); }
.layout-filters { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); align-items: start; padding-top: var(--s-8); }
.filters { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); max-height: calc(100vh - 120px); overflow-y: auto; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.filters__head h2 { font: 600 var(--fs-base) var(--font-ui); margin: 0; }
.filter-group { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
.filter-group summary { list-style: none; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group[open] summary .icon { transform: rotate(180deg); }
.filter-group__items { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.filter-option { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-700); cursor: pointer; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--green-700); margin: 0; }
.filter-option span:last-child { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-500); background: #F4F2EC; border-radius: var(--r-pill); padding: 1px 8px; font-variant-numeric: tabular-nums; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }
.results-bar h2 { font: 600 var(--fs-base) var(--font-ui); margin: 0; }
.active-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.active-filters a { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 var(--s-2) 0 var(--s-3); border-radius: var(--r-pill); background: var(--green-50); color: var(--green-800); font-size: var(--fs-xs); font-weight: 500; }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .layout-filters { grid-template-columns: 1fr; padding-top: var(--s-6); }
  .filters { display: none; position: fixed; inset: 0; z-index: 60; border-radius: 0; max-height: none; top: 0; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}
.pub-slot { display: block; max-width: 970px; margin-inline: auto; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.pub-slot img { width: 100%; height: auto; }
.pub-slot__tag { position: absolute; top: 8px; left: 8px; background: rgba(30,33,48,.72); color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }

/* ── Fiche offre ──────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; padding: var(--s-8) 0; }
.detail__head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8); margin-bottom: var(--s-6); }
.detail__head-top { display: flex; gap: var(--s-5); align-items: flex-start; }
.detail__head .job__logo { width: 72px; height: 72px; }
.detail__head h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: var(--s-2); }
.detail__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.detail__facts dt { font-size: var(--fs-xs); color: var(--ink-500); margin-bottom: 4px; }
.detail__facts dd { margin: 0; font-weight: 600; font-size: var(--fs-sm); }
.detail__actions { display: flex; gap: var(--s-2); margin-top: var(--s-6); flex-wrap: wrap; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8); }
.prose > * { max-width: var(--measure); }
.prose h2 { font-size: 1.4rem; margin-top: var(--s-8); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: var(--s-6); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--r-md); margin: var(--s-4) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.prose td, .prose th { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); text-align: left; }
.prose--plain { background: none; border: 0; padding: 0; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); margin-bottom: var(--s-5); }
.aside-card h3 { font-size: var(--fs-base); }
.aside-sticky { position: sticky; top: 96px; }
.mini-job { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.mini-job:first-of-type { border-top: 0; }
.mini-job .job__logo { width: 40px; height: 40px; font-size: 11px; }
.mini-job a { color: var(--ink-900); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.mini-job .meta { font-size: var(--fs-xs); gap: 2px var(--s-3); margin-top: 2px; }
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-sticky { position: static; }
  .detail__head, .prose { padding: var(--s-5); }
  .detail__head-top { flex-direction: column; }
}
.apply-bar { display: none; }
@media (max-width: 960px) {
  .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: var(--s-3) var(--gutter); gap: var(--s-2); }
  .apply-bar .btn--primary { flex: 1; }
  body.has-apply-bar { padding-bottom: 72px; }
}

/* ── Cartes génériques ────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--ink-300); box-shadow: var(--shadow-1); }
.card__media { aspect-ratio: 16 / 10; background: #EFEDE6; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--contain img { object-fit: contain; padding: var(--s-5); background: #fff; }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__body h3 { margin: 0; font-size: var(--fs-h3); }
.card__body h3 a { color: var(--ink-900); }
.card__body p { font-size: var(--fs-sm); color: var(--ink-700); margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--s-3); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--ink-500); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); }
.panel + .panel { margin-top: var(--s-6); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { margin: 0; font: 600 var(--fs-base) var(--font-ui); }
.panel--flush { padding: 0; }
.panel--flush .panel__head { padding: var(--s-5) var(--s-6) 0; }

/* Profils CVthèque */
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); position: relative; }
.profile-card:hover { border-color: var(--ink-300); box-shadow: var(--shadow-1); }
.profile-card h3 { margin: 0 0 2px; font-size: var(--fs-base); }
.profile-card h3 a { color: var(--ink-900); }
.profile-card h3 a::after { content: ""; position: absolute; inset: 0; }
.profile-card .num-id { font-size: var(--fs-xs); color: var(--ink-500); font-variant-numeric: tabular-nums; }
.profile-card .chips { margin-top: var(--s-3); }
.lock { display: inline-flex; gap: 4px; align-items: center; font-size: var(--fs-xs); color: var(--ink-500); }

/* Timeline CV */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 var(--s-5) var(--s-6); border-left: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green-700); }
.timeline strong { display: block; }
.timeline .muted { font-size: var(--fs-sm); }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8) var(--s-6); display: flex; flex-direction: column; position: relative; }
.plan--highlight { border-color: var(--green-700); box-shadow: inset 0 0 0 1px var(--green-700), var(--shadow-1); }
.plan__badge { position: absolute; top: -12px; left: var(--s-6); }
.plan h3 { font: 600 var(--fs-lg) var(--font-ui); margin-bottom: var(--s-1); }
.plan__price { font: 500 2.4rem/1 var(--font-display); margin: var(--s-5) 0 var(--s-1); font-variant-numeric: tabular-nums; }
.plan__price small { font: 500 var(--fs-sm) var(--font-ui); color: var(--ink-500); }
.plan ul { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); flex: 1; }
.plan li { display: flex; gap: var(--s-2); align-items: flex-start; }
.plan li .icon { color: var(--green-700); margin-top: 2px; }

/* ── Authentification ─────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth__form { display: flex; flex-direction: column; padding: var(--s-8) var(--gutter); }
.auth__form-inner { width: 100%; max-width: 440px; margin: auto; padding: var(--s-10) 0; }
.auth__form h1 { font-size: 2.1rem; margin-bottom: var(--s-2); }
.auth__form .lead { color: var(--ink-700); margin-bottom: var(--s-8); }
.auth__aside { position: relative; overflow: hidden; background: var(--ink-900); }
.auth__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.auth__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,83,42,0) 40%, rgba(8,83,42,.9)); }
.auth__quote { position: absolute; left: var(--s-10); right: var(--s-10); bottom: var(--s-10); color: #fff; z-index: 1; }
.auth__quote p { font: 500 1.6rem/1.25 var(--font-display); margin-bottom: var(--s-3); }
.auth__quote span { font-size: var(--fs-sm); opacity: .85; }
.code-input { font: 600 1.75rem/1 var(--font-ui); letter-spacing: .5em; text-align: center; height: 64px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* ── Espaces connectés ────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--sidebar) - 1px), var(--line) calc(var(--sidebar) - 1px), var(--line) var(--sidebar), transparent var(--sidebar)); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: var(--s-5) var(--s-4); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 var(--s-2) var(--s-5); }
.sidebar .brand img { height: 40px; }
.sidebar__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); padding: var(--s-4) var(--s-3) var(--s-2); }
.sidebar nav a { display: flex; align-items: center; gap: var(--s-3); padding: 9px var(--s-3); border-radius: var(--r-sm); color: var(--ink-700); font-size: var(--fs-sm); font-weight: 500; }
.sidebar nav a:hover { background: #F4F2EC; color: var(--ink-900); text-decoration: none; }
.sidebar nav a.is-current { background: var(--green-50); color: var(--green-800); }
.sidebar nav a .count { margin-left: auto; font-size: 11px; background: var(--sun-400); color: var(--ink-900); border-radius: var(--r-pill); padding: 0 7px; font-weight: 700; }
.sidebar__foot { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.app__main { min-width: 0; }
.app__bar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-8); position: sticky; top: 0; z-index: 20; }
.app__bar .menu-btn { display: none; }
.app__content { padding: var(--s-8); max-width: 1240px; }
.app__title { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.app__title h1 { font-size: 1.9rem; margin: 0; }
.app__title p { margin: var(--s-1) 0 0; color: var(--ink-500); font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; background: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 70; transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: var(--shadow-2); }
  .sidebar.is-open { transform: none; }
  .app__bar { padding: 0 var(--gutter); }
  .app__bar .menu-btn { display: inline-grid; }
  .app__content { padding: var(--s-6) var(--gutter); }
}
.scrim { position: fixed; inset: 0; background: rgba(30,33,48,.4); z-index: 65; display: none; }
.scrim.is-open { display: block; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.kpi span { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-500); font-weight: 500; }
.kpi strong { display: block; font: 500 2rem/1 var(--font-display); margin-top: var(--s-3); font-variant-numeric: tabular-nums; }
.kpi small { display: block; font-size: var(--fs-xs); color: var(--ink-500); margin-top: var(--s-2); }
.kpi--accent { background: var(--green-700); border-color: var(--green-700); color: #fff; }
a.kpi { display: block; position: relative; color: var(--ink-900); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.kpi:hover { border-color: var(--ink-300); box-shadow: var(--shadow-1); text-decoration: none; }
a.kpi:active { transform: translateY(1px); }
a.kpi--accent { color: #fff; }
a.kpi--accent:hover { background: var(--green-800); border-color: var(--green-800); }
.kpi__go { position: absolute; top: var(--s-5); right: var(--s-5); color: var(--ink-300); transition: color .15s, transform .15s; }
a.kpi:hover .kpi__go { color: var(--green-700); transform: translateX(2px); }
a.kpi--accent .kpi__go, a.kpi--accent:hover .kpi__go { color: rgba(255,255,255,.85); }
a.kpi small { color: var(--ink-500); }
a.kpi--accent small { color: rgba(255,255,255,.8); }
/* Lignes de tableau entièrement cliquables : le lien du titre couvre la ligne */
.table--rows tbody tr { position: relative; cursor: pointer; }
.table--rows td.title-cell a::after { content: ""; position: absolute; inset: 0; }
.table--rows .actions, .table--rows form, .table--rows select, .table--rows button { position: relative; z-index: 1; }
a.mini-job:hover strong { color: var(--green-700); }
.kpi--accent span, .kpi--accent small { color: rgba(255,255,255,.8); }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

.progress { height: 8px; background: #EDEBE4; border-radius: var(--r-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green-700); border-radius: inherit; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); background: #FBFAF7; white-space: nowrap; }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFBF8; }
.table .thumb { width: 52px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.table .actions { display: flex; gap: var(--s-1); justify-content: flex-end; white-space: nowrap; }
.table td.title-cell a { color: var(--ink-900); font-weight: 600; }
.toolbar { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
.toolbar .input, .toolbar .select { height: 40px; width: auto; min-width: 200px; }
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); overflow-x: auto; }
.tabs a { padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink-900); text-decoration: none; }
.tabs a.is-current { color: var(--green-700); border-color: var(--green-700); }
.tabs a .n { font-size: 11px; background: #F1EFE8; border-radius: var(--r-pill); padding: 1px 7px; margin-left: 4px; color: var(--ink-700); }

.empty { text-align: center; padding: var(--s-12) var(--s-6); color: var(--ink-500); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto var(--s-4); color: var(--ink-300); }
.empty h3 { color: var(--ink-900); }
.empty p { max-width: 44ch; margin: 0 auto var(--s-5); font-size: var(--fs-sm); }

/* Pipeline des candidatures */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--s-4); overflow-x: auto; padding-bottom: var(--s-4); }
.pipeline__col { background: #F1EFE8; border-radius: var(--r-md); padding: var(--s-3); min-height: 200px; }
.pipeline__col h3 { font-size: var(--fs-sm); display: flex; justify-content: space-between; padding: var(--s-1) var(--s-2) var(--s-3); margin: 0; }
.pipeline__col h3 span { color: var(--ink-500); font-variant-numeric: tabular-nums; }
.pipeline__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3); margin-bottom: var(--s-2); display: block; color: var(--ink-900); }
.pipeline__card:hover { border-color: var(--ink-300); text-decoration: none; box-shadow: var(--shadow-1); }
.pipeline__card strong { display: block; font-size: var(--fs-sm); }
.pipeline__card span { display: block; font-size: var(--fs-xs); color: var(--ink-500); }
.pipeline__card .row { margin-top: var(--s-2); gap: var(--s-2); }

.steps { display: flex; gap: 0; margin: var(--s-4) 0; }
.steps li { flex: 1; list-style: none; position: relative; font-size: var(--fs-xs); color: var(--ink-500); padding-top: var(--s-5); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.steps li.is-done { color: var(--green-800); }
.steps li.is-done::before, .steps li.is-done::after { background: var(--green-700); border-color: var(--green-700); }
.steps { padding: 0; }

.notif { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.notif:first-child { border-top: 0; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 8px; }
.notif.is-unread .notif__dot { background: var(--green-700); }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: var(--s-4); }
.chart__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.chart__bar i { display: block; background: var(--green-700); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart__bar i + i { background: var(--sun-400); border-radius: 0; }
.chart__bar em { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--ink-500); white-space: nowrap; }
.legend { display: flex; gap: var(--s-4); font-size: var(--fs-xs); color: var(--ink-500); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* Éditeur de texte riche minimal */
.rte { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.rte:focus-within { border-color: var(--green-700); box-shadow: var(--focus-ring); }
.rte__bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: #FBFAF7; flex-wrap: wrap; }
.rte__bar button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; color: var(--ink-700); font: 600 var(--fs-xs) var(--font-ui); }
.rte__bar button:hover { background: #EFEDE6; }
.rte__area { min-height: 220px; padding: var(--s-3) var(--s-4); outline: none; line-height: 1.6; }
.rte__area:empty::before { content: attr(data-placeholder); color: var(--ink-500); }
.rte__area ul, .rte__area ol { padding-left: 1.3em; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: var(--s-1); justify-content: center; margin-top: var(--s-8); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 var(--s-3); display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink-700); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--ink-300); text-decoration: none; }
.pagination .is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pagination .is-disabled { opacity: .45; }

/* ── Divers ───────────────────────────────────────────────── */
.cover { height: 240px; background: var(--green-800) center / cover no-repeat; border-radius: var(--r-lg); }
.company-head { display: flex; gap: var(--s-5); align-items: flex-end; margin-top: -56px; padding: 0 var(--s-6); position: relative; }
.company-head .job__logo { width: 112px; height: 112px; border-width: 4px; border-color: var(--surface); box-shadow: var(--shadow-1); }
@media (max-width: 640px) { .company-head { flex-direction: column; align-items: flex-start; margin-top: -40px; padding: 0 var(--s-3); } .company-head .job__logo { width: 84px; height: 84px; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; font-weight: 500; }
.share { display: flex; gap: var(--s-2); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-3); }
.contact-list .icon { color: var(--green-700); margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: var(--s-3) 0 0; color: var(--ink-700); }
.partners { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; justify-content: center; opacity: .85; }
.partners img { max-height: 44px; width: auto; filter: grayscale(1); transition: filter .2s; }
.partners a:hover img { filter: none; }
@media print { .header, .footer, .topbar, .sidebar, .app__bar, .apply-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ── Éditeur Gutenberg (admin) et rendu des blocs (public) ── */
.gutenberg-wrap { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.gutenberg-wrap .iso-editor { min-height: 520px; }
.gutenberg-wrap .edit-post-visual-editor, .gutenberg-wrap .editor-styles-wrapper { font-family: var(--font-ui); }
.wp-content > * { max-width: var(--measure); }
.wp-content > .alignwide, .wp-content > .alignfull, .wp-content > .wp-block-columns, .wp-content > .wp-block-cover,
.wp-content > .wp-block-image, .wp-content > .wp-block-gallery, .wp-content > .wp-block-table, .wp-content > .wp-block-embed { max-width: none; }
.wp-content .wp-block-button__link { background: var(--green-700); color: #fff; border-radius: var(--r-sm); padding: 12px 22px; font-weight: 600; text-decoration: none; }
.wp-content .wp-block-button__link:hover { background: var(--green-800); }
.wp-content .wp-block-quote { border-left: 3px solid var(--sun-400); padding-left: var(--s-5); margin-left: 0; font-family: var(--font-display); font-size: 1.2rem; }
.wp-content .wp-block-image img { border-radius: var(--r-md); margin: 0; }
.wp-content figcaption { font-size: var(--fs-sm); color: var(--ink-500); text-align: center; }
.wp-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.wp-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-md); }

/* ── CV Builder ───────────────────────────────────────────── */
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); margin-bottom: var(--s-6); }
.stepper__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-700); text-decoration: none !important; min-width: 0; }
.stepper__item:hover { border-color: var(--ink-300); }
.stepper__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F1EFE8; color: var(--ink-700); font-size: var(--fs-xs); font-weight: 700; flex: none; }
.stepper__label { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper__item.is-done .stepper__num { background: var(--green-50); color: var(--green-700); }
.stepper__item.is-current { border-color: var(--green-700); box-shadow: inset 0 0 0 1px var(--green-700); color: var(--ink-900); }
.stepper__item.is-current .stepper__num { background: var(--green-700); color: #fff; }
@media (max-width: 900px) {
  .stepper { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .stepper__item:not(.is-current) .stepper__label { display: none; }
}
.repeater-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-4); background: #FCFBF8; }
.repeater-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-3); }
.repeater-row--inline { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); }
.builder-bar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); padding: var(--s-3) var(--s-4); background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.cv-preview { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #EDEBE4; }
@media (max-width: 760px) { .cv-preview { height: 520px; } }
