/* =========================================================
   MEP V15 — architecture à trois noyaux
   Carrière / Indépendant / Employeur
   Chargé en dernier : ce fichier porte la nouvelle structure produit.
   ========================================================= */

:root {
  --mep-shell-bg: #ffffff;
  --mep-shell-ink: #12201b;
  --mep-shell-muted: #68766f;
  --mep-shell-line: #e1e9e4;
  --mep-shell-soft: #f5f8f6;
  --mep-shell-brand: #176b4d;
  --mep-shell-brand-dark: #0f523b;
  --mep-salaried: #315f9b;
  --mep-salaried-soft: #eef4fb;
  --mep-independent: #13795b;
  --mep-independent-soft: #edf8f4;
  --mep-employer: #6651a8;
  --mep-employer-soft: #f3f0fb;
  --mep-shadow-sm: 0 5px 18px rgba(18, 32, 27, .06);
  --mep-shadow-md: 0 16px 42px rgba(18, 32, 27, .09);
  --mep-radius-sm: 10px;
  --mep-radius: 16px;
  --mep-radius-lg: 24px;
}

/* ---------- Shell ---------- */
.mep-shell-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--mep-shell-line);
  box-shadow: 0 1px 0 rgba(18, 32, 27, .02);
  backdrop-filter: blur(16px);
}

.mep-shell-topbar {
  min-height: 70px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(235px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
}

.mep-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--mep-shell-ink) !important;
  text-decoration: none !important;
  min-width: 0;
}

.mep-shell-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #176b4d, #0f523b);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(23, 107, 77, .2);
}

.mep-shell-brand > span:last-child {
  display: grid;
  line-height: 1.08;
  min-width: 0;
}

.mep-shell-brand strong {
  font-size: 15px;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.mep-shell-brand small {
  margin-top: 4px;
  color: var(--mep-shell-muted);
  font-size: 11px;
  white-space: nowrap;
}

.mep-portal-switcher {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--mep-shell-line);
  background: var(--mep-shell-soft);
  border-radius: 14px;
}

.mep-portal-switcher-label {
  padding: 0 7px 0 8px;
  color: var(--mep-shell-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.mep-portal-switch-form { margin: 0; }

.mep-portal-switch {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #52615a;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.mep-portal-switch b { font-weight: 800; }
.mep-portal-switch span { font-size: 15px; line-height: 1; }
.mep-portal-switch i { color: #8b9892; font-style: normal; font-weight: 900; }
.mep-portal-switch:hover { background: #fff; color: var(--mep-shell-ink); }
.mep-portal-switch.is-active { background: #fff; color: var(--mep-shell-ink); box-shadow: 0 2px 9px rgba(18, 32, 27, .09); }
.mep-portal-switch.is-salaried.is-active { color: var(--mep-salaried); }
.mep-portal-switch.is-independent.is-active { color: var(--mep-independent); }
.mep-portal-switch.is-employer.is-active { color: var(--mep-employer); }
.mep-portal-switch.is-disabled { opacity: .52; }

.mep-shell-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mep-shell-login,
.mep-shell-register {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none !important;
}

.mep-shell-login { color: var(--mep-shell-ink) !important; }
.mep-shell-register { background: var(--mep-shell-brand); color: #fff !important; }

.mep-shell-account { position: relative; }
.mep-shell-account > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--mep-shell-ink);
}
.mep-shell-account > summary::-webkit-details-marker { display: none; }
.mep-shell-account > summary b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mep-shell-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #e8f2ed; color: var(--mep-shell-brand-dark); font-weight: 900; }

.mep-shell-account-menu,
.mep-shell-more > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--mep-shadow-md);
  z-index: 950;
}

.mep-shell-account-menu small { display: block; padding: 8px 10px 6px; color: #85908b; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; }
.mep-shell-account-menu a,
.mep-shell-account-menu button,
.mep-shell-more > div a {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mep-shell-ink) !important;
  text-decoration: none !important;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.mep-shell-account-menu a:hover,
.mep-shell-account-menu button:hover,
.mep-shell-more > div a:hover { background: var(--mep-shell-soft); }
.mep-shell-account-menu a span { color: var(--mep-shell-muted); font-size: 10px; }
.mep-shell-menu-separator { display: block; height: 1px; margin: 6px 4px; background: var(--mep-shell-line); }
.mep-shell-account-menu .is-danger-link { color: #a33f3f !important; }

.mep-shell-menu-toggle { display: none; }

/* ---------- Context navigation ---------- */
.mep-shell-context-nav {
  min-height: 48px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid #f1f4f2;
}

.mep-shell-context-nav > a,
.mep-shell-more > summary,
.mep-shell-context-title {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #59665f !important;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
}

.mep-shell-context-title {
  justify-content: flex-start;
  gap: 7px;
  min-width: 130px;
  padding-left: 0;
  color: var(--mep-shell-ink) !important;
  pointer-events: none;
}
.mep-shell-context-title i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #eef3f0; font-style: normal; }
[data-portal="salaried"] .mep-shell-context-title i { background: var(--mep-salaried-soft); color: var(--mep-salaried); }
[data-portal="independent"] .mep-shell-context-title i { background: var(--mep-independent-soft); color: var(--mep-independent); }
[data-portal="employer"] .mep-shell-context-title i { background: var(--mep-employer-soft); color: var(--mep-employer); }

.mep-shell-context-nav > a:hover,
.mep-shell-more > summary:hover { color: var(--mep-shell-ink) !important; background: #f8faf9; }
.mep-shell-context-nav > a.is-active,
.mep-shell-context-nav > a[aria-current="page"] { color: var(--mep-shell-ink) !important; }
[data-portal="salaried"] .mep-shell-context-nav > a.is-active,
[data-portal="salaried"] .mep-shell-context-nav > a[aria-current="page"] { border-bottom-color: var(--mep-salaried); }
[data-portal="independent"] .mep-shell-context-nav > a.is-active,
[data-portal="independent"] .mep-shell-context-nav > a[aria-current="page"] { border-bottom-color: var(--mep-independent); }
[data-portal="employer"] .mep-shell-context-nav > a.is-active,
[data-portal="employer"] .mep-shell-context-nav > a[aria-current="page"] { border-bottom-color: var(--mep-employer); }
.mep-shell-context-spacer { flex: 1 1 auto; }

.mep-shell-more { position: relative; }
.mep-shell-more > summary { list-style: none; cursor: pointer; }
.mep-shell-more > summary::-webkit-details-marker { display: none; }
.mep-shell-more > div { right: auto; left: 0; top: calc(100% - 2px); min-width: 210px; }

.mep-shell-flash {
  position: fixed;
  z-index: 1000;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92vw, 620px);
  padding: 10px 14px;
  border: 1px solid #cfe4d9;
  border-radius: 10px;
  background: #f1fbf6;
  color: #215740;
  box-shadow: var(--mep-shadow-sm);
  font-size: 12px;
  font-weight: 750;
}

.mep-shell-mobile-nav { display: none; }

/* ---------- Generic V15 portal pages ---------- */
.mep-portal-page {
  width: min(1280px, calc(100% - 40px));
  margin: 34px auto 72px;
  color: var(--mep-shell-ink);
}

.mep-portal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--mep-shell-line);
  border-radius: var(--mep-radius-lg);
  background: linear-gradient(135deg, #fff 0%, #f5f8f6 100%);
  box-shadow: var(--mep-shadow-sm);
}
.mep-portal-hero.is-compact { padding: 25px 28px; }
.mep-portal-hero.is-onboarding { align-items: center; text-align: center; justify-content: center; }
.mep-portal-hero.is-public { align-items: center; }
.mep-portal-hero > div:first-child { max-width: 780px; }
.mep-portal-hero h1 { margin: 4px 0 9px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; color: var(--mep-shell-ink); }
.mep-portal-hero.is-compact h1 { font-size: clamp(26px, 3vw, 37px); }
.mep-portal-hero p { margin: 0; max-width: 720px; color: var(--mep-shell-muted); font-size: 15px; line-height: 1.65; }
.mep-portal-eyebrow { margin: 0 0 5px !important; color: var(--mep-shell-brand) !important; font-size: 10px !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: .13em; }
.mep-portal-hero-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #eaf4ef; color: var(--mep-shell-brand-dark); font-size: 10px; font-weight: 850; }
.mep-portal-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mep-portal-flash { margin: -8px 0 22px; padding: 12px 15px; border: 1px solid #cfe4d9; border-radius: 12px; background: #f1fbf6; color: #20573f; font-size: 13px; font-weight: 700; }

/* ---------- Mes espaces ---------- */
.mep-spaces-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mep-space-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--mep-shadow-sm);
  opacity: .72;
  position: relative;
  overflow: hidden;
}
.mep-space-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: #bdc7c1; }
.mep-space-card.is-salaried::before { background: var(--mep-salaried); }
.mep-space-card.is-independent::before { background: var(--mep-independent); }
.mep-space-card.is-employer::before { background: var(--mep-employer); }
.mep-space-card.is-enabled { opacity: 1; }
.mep-space-card.is-active { border-color: #cbd9d1; box-shadow: var(--mep-shadow-md); transform: translateY(-2px); }
.mep-space-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.mep-space-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #f0f4f2; color: var(--mep-shell-ink); font-size: 24px; font-weight: 850; }
.is-salaried .mep-space-icon { background: var(--mep-salaried-soft); color: var(--mep-salaried); }
.is-independent .mep-space-icon { background: var(--mep-independent-soft); color: var(--mep-independent); }
.is-employer .mep-space-icon { background: var(--mep-employer-soft); color: var(--mep-employer); }
.mep-space-state { padding: 5px 8px; border-radius: 999px; background: #f2f5f3; color: #738078; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.mep-space-card.is-active .mep-space-state { background: #e7f3ed; color: #1e684c; }
.mep-space-card h2 { margin: 2px 0 9px; font-size: 27px; letter-spacing: -.035em; }
.mep-space-card > p:not(.mep-portal-eyebrow) { margin: 0; color: var(--mep-shell-muted); line-height: 1.55; font-size: 13px; }
.mep-space-map { margin: 22px 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #5d6963; }
.mep-space-map span { padding: 6px 8px; border: 1px solid var(--mep-shell-line); border-radius: 8px; background: #fafcfb; font-size: 10px; font-weight: 750; }
.mep-space-map b { color: #9ca7a1; font-size: 10px; }
.mep-space-meta { margin: 0 0 12px; color: var(--mep-shell-muted); }
.mep-space-card form { margin-top: auto; }
.mep-space-open { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 10px 13px; border: 0; border-radius: 11px; background: var(--mep-shell-ink); color: #fff !important; font: inherit; font-size: 12px; font-weight: 850; text-decoration: none !important; cursor: pointer; }
.mep-space-open.is-muted { background: #f2f4f3; color: #7d8982 !important; cursor: default; }
.mep-space-card.is-salaried .mep-space-open:not(.is-muted) { background: var(--mep-salaried); }
.mep-space-card.is-independent .mep-space-open:not(.is-muted) { background: var(--mep-independent); }
.mep-space-card.is-employer .mep-space-open:not(.is-muted) { background: var(--mep-employer); }

.mep-portal-settings-card { margin-top: 24px; padding: 24px; display: grid; grid-template-columns: minmax(260px, .9fr) 1.5fr; gap: 26px; border: 1px solid var(--mep-shell-line); border-radius: 20px; background: #fff; box-shadow: var(--mep-shadow-sm); }
.mep-portal-settings-copy h2 { margin: 3px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.mep-portal-settings-copy p:last-child { margin: 0; color: var(--mep-shell-muted); line-height: 1.55; font-size: 13px; }
.mep-portal-settings-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: stretch; }
.mep-portal-settings-form label { position: relative; margin: 0; cursor: pointer; }
.mep-portal-settings-form label input { position: absolute; opacity: 0; pointer-events: none; }
.mep-portal-settings-form label span { height: 100%; min-height: 75px; display: flex; flex-direction: column; justify-content: center; padding: 12px; border: 1px solid var(--mep-shell-line); border-radius: 12px; background: #fafcfb; transition: .15s ease; }
.mep-portal-settings-form label input:checked + span { border-color: #9fc4b2; background: #f0f8f4; box-shadow: inset 0 0 0 1px #9fc4b2; }
.mep-portal-settings-form label b { font-size: 12px; }
.mep-portal-settings-form label small { margin-top: 3px; color: var(--mep-shell-muted); font-size: 9px; }
.mep-portal-settings-form > button { grid-column: 1 / -1; min-height: 42px; border: 0; border-radius: 10px; background: var(--mep-shell-brand); color: #fff; font-weight: 850; cursor: pointer; }

/* ---------- Onboarding ---------- */
.mep-onboarding-v15 { max-width: 1180px; }
.mep-onboarding-form { display: grid; gap: 18px; }
.mep-onboarding-grid-v15 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mep-onboarding-choice { position: relative; min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--mep-shell-line); border-radius: 20px; background: #fff; box-shadow: var(--mep-shadow-sm); cursor: pointer; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.mep-onboarding-choice:hover { transform: translateY(-2px); box-shadow: var(--mep-shadow-md); }
.mep-onboarding-choice > input { position: absolute; opacity: 0; }
.mep-onboarding-choice:has(input:checked) { border-color: #8dbba5; box-shadow: inset 0 0 0 1px #8dbba5, var(--mep-shadow-md); }
.mep-onboarding-choice.is-salaried:has(input:checked) { border-color: #91aed1; box-shadow: inset 0 0 0 1px #91aed1, var(--mep-shadow-md); }
.mep-onboarding-choice.is-employer:has(input:checked) { border-color: #ac9ad5; box-shadow: inset 0 0 0 1px #ac9ad5, var(--mep-shadow-md); }
.mep-onboarding-check { position: absolute; top: 16px; right: 16px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: #eef2f0; color: transparent; font-size: 12px; }
.mep-onboarding-choice:has(input:checked) .mep-onboarding-check { background: var(--mep-shell-brand); color: #fff; }
.mep-onboarding-choice.is-salaried:has(input:checked) .mep-onboarding-check { background: var(--mep-salaried); }
.mep-onboarding-choice.is-employer:has(input:checked) .mep-onboarding-check { background: var(--mep-employer); }
.mep-onboarding-choice > small { margin-top: 18px; color: var(--mep-shell-muted); font-weight: 850; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; }
.mep-onboarding-choice > strong { margin-top: 5px; font-size: 23px; letter-spacing: -.03em; }
.mep-onboarding-choice > p { margin: 10px 0 0; color: var(--mep-shell-muted); line-height: 1.55; font-size: 13px; }
.mep-onboarding-flow { margin-top: auto; padding-top: 18px; color: #435049; font-size: 10px; font-weight: 800; }
.mep-onboarding-footer-v15 { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border: 1px solid var(--mep-shell-line); border-radius: 16px; background: #fff; }
.mep-onboarding-footer-v15 > div { display: grid; gap: 3px; }
.mep-onboarding-footer-v15 > div strong { font-size: 12px; }
.mep-onboarding-footer-v15 > div span { color: var(--mep-shell-muted); font-size: 10px; }
.mep-onboarding-preferred { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--mep-shell-muted); font-size: 10px; font-weight: 800; }
.mep-onboarding-preferred select { min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid var(--mep-shell-line); border-radius: 9px; background: #fff; }
.mep-onboarding-footer-v15 > button { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 10px; background: var(--mep-shell-brand); color: #fff; font-weight: 850; cursor: pointer; }

/* ---------- Employer ---------- */
.mep-employer-activate { max-width: 720px; margin: 80px auto; padding: 34px; text-align: center; border: 1px solid #d8d0eb; border-radius: 24px; background: linear-gradient(145deg, #fff, #f6f3fc); box-shadow: var(--mep-shadow-md); }
.mep-employer-activate .mep-space-icon { margin: 0 auto 16px; background: var(--mep-employer-soft); color: var(--mep-employer); }
.mep-employer-activate h1 { margin: 4px 0 9px; font-size: 34px; letter-spacing: -.04em; }
.mep-employer-activate > p:not(.mep-portal-eyebrow) { color: var(--mep-shell-muted); line-height: 1.6; }
.mep-employer-activate form { margin-top: 20px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.mep-employer-public-flow { min-width: 330px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; align-items: center; }
.mep-employer-public-flow span { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid #dcd6ed; border-radius: 11px; background: #fff; color: #514377; font-size: 10px; font-weight: 850; }
.mep-employer-public-flow b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: var(--mep-employer-soft); }
.mep-employer-public-flow i { color: #aa9dc8; font-style: normal; }
.mep-employer-public-cards { margin-top: 16px; }

.mep-employer-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 18px; }
.mep-employer-kpi-grid article { min-height: 112px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 9px; align-items: center; padding: 15px; border: 1px solid var(--mep-shell-line); border-radius: 14px; background: #fff; box-shadow: var(--mep-shadow-sm); }
.mep-employer-kpi-grid article > span { grid-row: 1 / 4; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--mep-employer-soft); color: var(--mep-employer); font-weight: 900; }
.mep-employer-kpi-grid small { color: var(--mep-shell-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.mep-employer-kpi-grid strong { font-size: 25px; line-height: 1; }
.mep-employer-kpi-grid em { color: #7e8a84; font-size: 9px; font-style: normal; }

.mep-employer-dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-bottom: 16px; }
.mep-employer-next-action { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 13px; background: #f8f6fc; border: 1px solid #e4def1; }
.mep-employer-next-action > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--mep-employer); color: #fff; font-weight: 900; }
.mep-employer-next-action strong { display: block; font-size: 13px; }
.mep-employer-next-action p { margin: 4px 0 0; color: var(--mep-shell-muted); font-size: 11px; }
.mep-employer-next-action a { color: var(--mep-employer) !important; font-size: 11px; font-weight: 850; text-decoration: none !important; }
.mep-employer-company-status > strong { display: block; margin-top: 9px; font-size: 18px; }
.mep-employer-company-status > p { color: var(--mep-shell-muted); }
.mep-employer-company-status > a { color: var(--mep-employer) !important; font-size: 11px; font-weight: 850; }

.mep-employer-job-list { display: grid; gap: 7px; }
.mep-employer-job-list article { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--mep-shell-line); border-radius: 11px; background: #fbfcfb; }
.mep-employer-job-list article.is-selected { border-color: #b6a8d8; background: #f7f5fc; }
.mep-employer-job-list article > div:first-child { display: grid; gap: 3px; min-width: 0; }
.mep-employer-job-list strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.mep-employer-job-list span { color: var(--mep-shell-muted); font-size: 9px; }
.mep-employer-job-list a { color: var(--mep-employer) !important; font-size: 10px; font-weight: 850; text-decoration: none !important; }
.mep-employer-job-actions { display: flex !important; grid-auto-flow: column; gap: 8px !important; white-space: nowrap; }

.mep-employer-jobs-layout { display: grid; grid-template-columns: minmax(310px, .7fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.mep-employer-jobs-list { position: sticky; top: 138px; max-height: calc(100vh - 165px); overflow: auto; }
.mep-employer-job-editor { min-width: 0; }
.mep-employer-publication-bar { margin-top: 14px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #dfd9ed; border-radius: 13px; background: #f8f6fc; }
.mep-employer-publication-bar > div:first-child { display: grid; gap: 2px; }
.mep-employer-publication-bar small { color: var(--mep-shell-muted); text-transform: uppercase; letter-spacing: .07em; font-size: 8px; }
.mep-employer-publication-bar span { color: var(--mep-shell-muted); font-size: 9px; }
.mep-employer-publication-bar > div:last-child { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mep-employer-publication-bar form { margin: 0; }

.mep-employer-app-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 16px; }
.mep-employer-app-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--mep-shell-line); border-radius: 9px; background: #fff; color: #5d6963 !important; text-decoration: none !important; font-size: 10px; font-weight: 750; }
.mep-employer-app-filters a b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: #eef2f0; font-size: 8px; }
.mep-employer-app-filters a.is-active { border-color: #b6a8d8; background: var(--mep-employer-soft); color: var(--mep-employer) !important; }
.mep-ats-list.is-v15 { gap: 10px; }
.mep-ats-list.is-v15 .mep-ats-candidate { border-radius: 14px; box-shadow: none; }

/* ---------- Account portal summary ---------- */
.mep-account-portals .mep-work-mode-settings-head { align-items: center; }
.mep-account-portal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mep-account-portal-summary > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--mep-shell-line); border-radius: 10px; background: #f7f9f8; opacity: .58; }
.mep-account-portal-summary > span.is-enabled { opacity: 1; background: #fff; }
.mep-account-portal-summary b { font-size: 11px; }
.mep-account-portal-summary small { color: var(--mep-shell-muted); font-size: 9px; }
.mep-account-portal-note { margin: 12px 0 0; color: var(--mep-shell-muted); font-size: 11px; }

/* ---------- Public home V15 ---------- */
.mep-public-v15 .mep-public-product-hero { align-items: stretch; }
.mep-public-core-card { width: min(430px, 42vw); padding: 20px; display: grid; gap: 9px; border: 1px solid var(--mep-shell-line); border-radius: 20px; background: #fff; box-shadow: var(--mep-shadow-md); }
.mep-public-core-card header { display: grid; gap: 4px; padding-bottom: 9px; }
.mep-public-core-card header > span { color: var(--mep-shell-brand); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.mep-public-core-card header strong { font-size: 22px; letter-spacing: -.03em; }
.mep-public-core-card header small { color: var(--mep-shell-muted); }
.mep-public-core-row { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 11px; background: #f7f9f8; }
.mep-public-core-row > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #fff; font-size: 17px; }
.mep-public-core-row > div { display: grid; gap: 2px; }
.mep-public-core-row strong { font-size: 12px; }
.mep-public-core-row span { color: var(--mep-shell-muted); font-size: 9px; }
.mep-public-core-row.is-salaried { background: var(--mep-salaried-soft); }
.mep-public-core-row.is-salaried > b { color: var(--mep-salaried); }
.mep-public-core-row.is-independent { background: var(--mep-independent-soft); }
.mep-public-core-row.is-independent > b { color: var(--mep-independent); }
.mep-public-core-row.is-employer { background: var(--mep-employer-soft); }
.mep-public-core-row.is-employer > b { color: var(--mep-employer); }
.mep-public-core-card footer { padding-top: 8px; border-top: 1px solid var(--mep-shell-line); color: var(--mep-shell-muted); font-size: 9px; font-weight: 750; }
.mep-public-mode-chips .is-employer { background: var(--mep-employer-soft) !important; color: var(--mep-employer) !important; border-color: #d7cfeb !important; }
.mep-public-workspaces-grid.is-v15 article.is-employer { border-color: #ded7ef; background: linear-gradient(145deg, #fff, #faf8fe); }
.mep-public-workspaces-grid.is-v15 article.is-employer .mep-public-workspace-icon { color: var(--mep-employer); background: var(--mep-employer-soft); }
.mep-public-workspaces-grid.is-v15 article > small { display: block; margin-top: 15px; color: var(--mep-shell-muted); font-weight: 800; font-size: 9px; }

/* ---------- Focus / accessibility ---------- */
.mep-shell-header a:focus-visible,
.mep-shell-header button:focus-visible,
.mep-portal-page a:focus-visible,
.mep-portal-page button:focus-visible,
.mep-portal-page input:focus-visible,
.mep-portal-page select:focus-visible,
.mep-portal-page textarea:focus-visible {
  outline: 3px solid rgba(45, 123, 89, .23) !important;
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mep-shell-topbar { grid-template-columns: auto 1fr auto; gap: 12px; }
  .mep-shell-brand small { display: none; }
  .mep-portal-switcher-label { display: none; }
  .mep-shell-context-title { min-width: auto; }
  .mep-shell-context-nav > a, .mep-shell-more > summary { padding: 0 9px; font-size: 11px; }
  .mep-employer-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  body { padding-bottom: 70px; }
  .mep-shell-topbar { min-height: 62px; padding: 0 14px; grid-template-columns: 1fr auto auto; }
  .mep-shell-brand strong { font-size: 13px; }
  .mep-shell-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .mep-portal-switcher { order: 4; grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 8px; }
  .mep-portal-switch-form { width: 100%; }
  .mep-portal-switch { width: 100%; justify-content: center; }
  .mep-shell-account > summary b, .mep-shell-account > summary > span:last-child { display: none; }
  .mep-shell-account > summary { border: 0; padding: 0; }
  .mep-shell-menu-toggle { width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border: 0; border-radius: 10px; background: #f3f6f4; }
  .mep-shell-menu-toggle span { width: 18px; height: 2px; background: #334139; border-radius: 2px; }
  .mep-shell-context-nav { display: none; padding: 9px 14px 14px; min-height: 0; border-top: 1px solid var(--mep-shell-line); flex-wrap: wrap; }
  .mep-shell-context-nav.is-open { display: flex; }
  .mep-shell-context-nav > a, .mep-shell-more, .mep-shell-context-title { width: 100%; }
  .mep-shell-context-nav > a, .mep-shell-more > summary, .mep-shell-context-title { min-height: 40px; justify-content: flex-start; padding: 0 10px; border-bottom: 0 !important; border-radius: 8px; }
  .mep-shell-context-nav > a.is-active, .mep-shell-context-nav > a[aria-current="page"] { background: #f1f5f3; }
  .mep-shell-more > div { position: static; min-width: 0; margin: 0 0 4px 10px; box-shadow: none; }
  .mep-shell-mobile-nav { position: fixed; z-index: 880; left: 0; right: 0; bottom: 0; height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px max(6px, env(safe-area-inset-left)) max(5px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--mep-shell-line); box-shadow: 0 -8px 24px rgba(18,32,27,.05); }
  .mep-shell-mobile-nav a { display: grid; place-items: center; align-content: center; gap: 2px; color: #718078 !important; text-decoration: none !important; border-radius: 8px; }
  .mep-shell-mobile-nav a span { font-size: 16px; }
  .mep-shell-mobile-nav a small { font-size: 8px; font-weight: 800; }
  .mep-shell-mobile-nav a.is-active, .mep-shell-mobile-nav a[aria-current="page"] { background: #f1f5f3; color: var(--mep-shell-ink) !important; }
  .mep-portal-page { width: min(100% - 24px, 1280px); margin-top: 20px; }
  .mep-spaces-grid, .mep-onboarding-grid-v15 { grid-template-columns: 1fr; }
  .mep-space-card, .mep-onboarding-choice { min-height: 0; }
  .mep-portal-settings-card { grid-template-columns: 1fr; }
  .mep-onboarding-footer-v15 { grid-template-columns: 1fr; }
  .mep-employer-dashboard-grid, .mep-employer-jobs-layout { grid-template-columns: 1fr; }
  .mep-employer-jobs-list { position: static; max-height: none; }
  .mep-public-core-card { width: 100%; }
}

@media (max-width: 640px) {
  .mep-shell-brand > span:last-child { display: none; }
  .mep-shell-topbar { grid-template-columns: auto 1fr auto; }
  .mep-shell-actions { justify-self: end; }
  .mep-shell-login { display: none; }
  .mep-portal-switch b { font-size: 10px; }
  .mep-portal-hero { padding: 22px; align-items: flex-start; flex-direction: column; }
  .mep-portal-hero h1 { font-size: 31px; }
  .mep-portal-hero-actions { justify-content: flex-start; width: 100%; }
  .mep-spaces-grid { gap: 12px; }
  .mep-space-card { padding: 19px; }
  .mep-portal-settings-form { grid-template-columns: 1fr; }
  .mep-portal-settings-form > button { grid-column: 1; }
  .mep-account-portal-summary { grid-template-columns: 1fr; }
  .mep-employer-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mep-employer-next-action { grid-template-columns: auto 1fr; }
  .mep-employer-next-action a { grid-column: 2; }
  .mep-employer-job-list article { align-items: flex-start; flex-direction: column; }
  .mep-employer-publication-bar { align-items: flex-start; flex-direction: column; }
  .mep-employer-publication-bar > div:last-child { justify-content: flex-start; }
  .mep-employer-public-flow { min-width: 0; width: 100%; grid-template-columns: 1fr; }
  .mep-employer-public-flow i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mep-portal-switch, .mep-onboarding-choice { transition: none !important; }
}

/* =========================================================
   Employeur — onboarding et résilience
   ========================================================= */
.mep-employer-system-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #ead9a8;
  border-radius: 14px;
  background: #fffaf0;
  color: #5c4a19;
}
.mep-employer-system-warning strong { display: block; margin-bottom: 4px; color: #45360f; }
.mep-employer-system-warning p { margin: 0; color: #766535; font-size: 13px; line-height: 1.55; }

.mep-employer-welcome {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
  gap: 22px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid #ddd6f2;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbfaff 0%, #fff 56%, #f6f3fc 100%);
  box-shadow: 0 12px 34px rgba(73, 56, 132, .07);
}
.mep-employer-welcome.is-complete {
  border-color: #cfe4d9;
  background: linear-gradient(135deg, #f7fcf9 0%, #fff 62%, #f1f8f4 100%);
}
.mep-employer-welcome-main { align-self: center; }
.mep-employer-welcome-main h2 {
  margin: 4px 0 9px;
  color: var(--mep-shell-ink);
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.mep-employer-welcome-main > p:not(.mep-portal-eyebrow) {
  margin: 0;
  max-width: 590px;
  color: var(--mep-shell-muted);
  font-size: 14px;
  line-height: 1.65;
}
.mep-employer-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.mep-employer-progress > span {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e5f3;
}
.mep-employer-progress > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6651a8, #806bc0);
}
.mep-employer-progress b { color: #5b488f; font-size: 12px; }

.mep-employer-onboarding-list { display: grid; gap: 8px; }
.mep-employer-onboarding-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #e6e1f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--mep-shell-ink) !important;
  text-decoration: none !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.mep-employer-onboarding-list > a:hover {
  transform: translateY(-1px);
  border-color: #cfc4ed;
  box-shadow: 0 7px 18px rgba(74, 57, 132, .07);
}
.mep-employer-onboarding-list > a > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0edf8;
  color: #6651a8;
  font-size: 12px;
  font-weight: 900;
}
.mep-employer-onboarding-list strong,
.mep-employer-onboarding-list small { display: block; }
.mep-employer-onboarding-list strong { font-size: 13px; }
.mep-employer-onboarding-list small { margin-top: 3px; color: #7a837f; font-size: 10px; line-height: 1.35; }
.mep-employer-onboarding-list > a > i { color: #9b91ba; font-style: normal; font-weight: 900; }
.mep-employer-onboarding-list > a.is-current {
  border-color: #bfb1e4;
  box-shadow: inset 3px 0 0 #6651a8;
}
.mep-employer-onboarding-list > a.is-done > span {
  background: #e8f5ee;
  color: #1b7351;
}
.mep-employer-onboarding-list > a.is-done { border-color: #d7e9df; }
.mep-employer-onboarding-list > a.is-locked { opacity: .58; }

@media (max-width: 1040px) {
  .mep-employer-welcome { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mep-employer-system-warning { align-items: stretch; flex-direction: column; }
  .mep-employer-welcome { padding: 18px; border-radius: 18px; }
  .mep-employer-onboarding-list > a { min-height: 62px; }
}

/* =========================================================
   MEP Employeur — finition produit
   Noms de fichiers stables : aucun suffixe de version.
   ========================================================= */

.mep-employer-app {
  --employer-accent: var(--mep-employer);
  --employer-soft: #f6f3fc;
  --employer-line: #e5def3;
  --employer-ink: #251f36;
}

.mep-employer-kpi-grid.is-rich {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.mep-employer-kpi-grid.is-rich article {
  min-width: 0;
}
.mep-employer-kpi-grid.is-rich strong {
  font-size: clamp(21px, 2.2vw, 30px);
}
.mep-employer-kpi-grid.is-rich article:nth-child(4) strong {
  letter-spacing: -.04em;
}

.mep-employer-dashboard-grid.is-pro {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.mep-employer-health-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 14px 0 10px;
}
.mep-employer-health-score > strong {
  margin: 0 !important;
  font-size: 27px !important;
  letter-spacing: -.04em;
}
.mep-employer-health-score > div {
  min-width: 0;
}
.mep-employer-health-score > div > span {
  height: 8px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8f4;
}
.mep-employer-health-score > div > span > i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d78c5, #6651a8);
}
.mep-employer-health-score small {
  display: block;
  margin-top: 6px;
  color: var(--mep-shell-muted);
  font-size: 10px;
}

.mep-employer-recent-candidates {
  display: grid;
  gap: 7px;
}
.mep-employer-recent-candidates > a {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 12px;
  background: #fcfdfc;
  color: var(--mep-shell-ink) !important;
  text-decoration: none !important;
}
.mep-employer-recent-candidates > a:hover {
  border-color: #cabee7;
  background: #faf8fe;
}
.mep-employer-recent-candidates strong,
.mep-employer-recent-candidates small {
  display: block;
}
.mep-employer-recent-candidates strong {
  font-size: 12px;
}
.mep-employer-recent-candidates small {
  margin-top: 2px;
  color: var(--mep-shell-muted);
  font-size: 9px;
}
.mep-employer-recent-candidates > a > b {
  color: #7b66b3;
  font-size: 10px;
  letter-spacing: 1px;
}

.mep-employer-activity {
  display: grid;
  gap: 7px;
}
.mep-employer-activity > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 7px 0;
  border-bottom: 1px solid #eef2ef;
}
.mep-employer-activity > div:last-child { border-bottom: 0; }
.mep-employer-activity > div > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--employer-soft);
  color: var(--employer-accent);
  font-weight: 900;
}
.mep-employer-activity p { margin: 0; }
.mep-employer-activity strong,
.mep-employer-activity small { display: block; }
.mep-employer-activity strong { font-size: 11px; }
.mep-employer-activity small { margin-top: 2px; color: var(--mep-shell-muted); font-size: 9px; }
.mep-employer-activity time { color: #8a958f; font-size: 9px; white-space: nowrap; }

.mep-employer-job-list.is-dashboard article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.mep-employer-job-health {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
}
.mep-employer-job-health > i {
  width: 54px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #7461ad var(--score), #ece9f4 var(--score));
}
.mep-employer-job-health > b {
  color: #7461ad;
  font-size: 9px;
}

/* ----- Fiche entreprise ----- */
.mep-employer-company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 18px;
  align-items: start;
}
.mep-employer-company-preview {
  display: grid;
  gap: 14px;
}
.is-sticky-card {
  position: sticky;
  top: 138px;
}
.mep-employer-quality-line {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 10px 14px;
  align-items: center;
  margin: 2px 0 20px;
  padding: 13px;
  border: 1px solid var(--employer-line);
  border-radius: 13px;
  background: var(--employer-soft);
}
.mep-employer-quality-line > div { display: flex; align-items: baseline; gap: 5px; }
.mep-employer-quality-line > div strong { font-size: 21px; letter-spacing: -.04em; }
.mep-employer-quality-line > div span { color: #756c83; font-size: 10px; }
.mep-employer-quality-line > i {
  height: 8px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e4f3;
}
.mep-employer-quality-line > i > b { height: 100%; display: block; border-radius: inherit; background: #765faf; }
.mep-employer-quality-line > small { grid-column: 1 / -1; color: #756c83; font-size: 10px; }

.mep-employer-verified-note {
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid #cfe7da;
  border-radius: 12px;
  background: #f1faf5;
}
.mep-employer-verified-note b { color: #176a48; font-size: 11px; }
.mep-employer-verified-note p { margin: 4px 0 0; color: #527064; font-size: 10px; line-height: 1.5; }

.mep-employer-form-step {
  min-width: 0;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 15px;
  background: #fff;
}
.mep-employer-form-step > legend {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  color: var(--mep-shell-ink);
}
.mep-employer-form-step > legend > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--employer-soft);
  color: var(--employer-accent);
  font-size: 10px;
  font-weight: 900;
}
.mep-employer-form-step > legend strong,
.mep-employer-form-step > legend small { display: block; }
.mep-employer-form-step > legend strong { font-size: 12px; }
.mep-employer-form-step > legend small { margin-top: 2px; color: var(--mep-shell-muted); font-size: 9px; font-weight: 500; }
.mep-employer-company-form .mep-pro-form-grid,
.mep-employer-job-form .mep-pro-form-grid { margin-top: 8px; }
.mep-employer-company-form .mep-pro-form-actions.is-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--employer-line);
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(38,31,56,.1);
  backdrop-filter: blur(12px);
}
.mep-employer-company-form .mep-pro-form-actions.is-sticky > span { color: var(--mep-shell-muted); font-size: 9px; }

.mep-employer-company-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #7560af, #55428f);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  box-shadow: 0 11px 24px rgba(102,81,168,.2);
}
.mep-employer-company-preview h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.mep-employer-company-preview h2 + strong { display: block; margin-top: 6px; color: #5c4c88; font-size: 12px; line-height: 1.45; }
.mep-employer-company-preview h2 + strong + p { margin: 10px 0; color: var(--mep-shell-muted); font-size: 10px; }
.mep-employer-preview-description { margin: 14px 0; color: #55615b; font-size: 11px; line-height: 1.65; white-space: pre-line; }
.mep-employer-improve-card h3 { margin: 4px 0 10px; font-size: 17px; }
.mep-employer-improve-card ul { margin: 0; padding-left: 18px; color: #66716c; font-size: 11px; line-height: 1.8; }

/* ----- Editeur d'annonce ----- */
.mep-employer-jobs-layout.is-finished {
  grid-template-columns: minmax(285px, .58fr) minmax(0, 1.42fr);
}
.mep-employer-job-workspace { min-width: 0; }
.mep-employer-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.mep-employer-editor-head h2 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.035em; }
.mep-employer-quality-pill {
  min-width: 140px;
  display: grid;
  grid-template-columns: 74px auto;
  gap: 3px 8px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--employer-line);
  border-radius: 12px;
  background: var(--employer-soft);
}
.mep-employer-quality-pill > span { height: 6px; overflow: hidden; border-radius: 999px; background: #e6e0f1; }
.mep-employer-quality-pill > span > i { height: 100%; display: block; background: #7059a8; border-radius: inherit; }
.mep-employer-quality-pill b { color: #5b478f; font-size: 13px; }
.mep-employer-quality-pill small { grid-column: 1 / -1; color: #7a7187; font-size: 8px; text-align: right; }

.mep-employer-editor-steps {
  position: sticky;
  top: 118px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.mep-employer-editor-steps a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  color: #66716c !important;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 800;
}
.mep-employer-editor-steps a:hover { background: var(--employer-soft); color: var(--employer-accent) !important; }
.mep-employer-editor-steps b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #f0edf7; color: #6651a8; font-size: 8px; }

.mep-employer-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
  align-items: start;
}
.mep-employer-job-live-preview { min-width: 0; }
.mep-employer-job-live-preview .is-sticky-card { top: 178px; }
.mep-employer-job-live-preview h3 { margin: 12px 0 3px; font-size: 20px; line-height: 1.15; letter-spacing: -.035em; }
.mep-employer-job-live-preview h3 + strong { color: #625286; font-size: 11px; }
.mep-job-preview-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.mep-job-preview-meta span { padding: 5px 7px; border-radius: 7px; background: #f2f4f3; color: #66716c; font-size: 8px; font-weight: 750; }
.mep-job-preview-meta + b { display: block; margin: 7px 0 12px; color: #2f5f4c; font-size: 11px; }
.mep-job-live-preview p { color: #5f6a64; font-size: 10px; line-height: 1.6; white-space: pre-line; }
.mep-job-live-preview p + small { display: block; margin-top: 14px; padding-top: 11px; border-top: 1px solid #edf0ee; color: #8a948f; font-size: 8px; line-height: 1.5; }

.mep-employer-form-advice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9f8;
  color: #637069;
  font-size: 10px;
  line-height: 1.55;
}
.mep-employer-form-advice b { color: #425149; }

.mep-employer-publication-explainer {
  display: grid;
  grid-template-columns: auto 1fr auto auto 1fr auto auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 10px 0 16px;
}
.mep-employer-publication-explainer > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eeeaf6;
  color: #6651a8;
  font-size: 9px;
  font-weight: 900;
}
.mep-employer-publication-explainer > p { margin: 0; }
.mep-employer-publication-explainer > p b,
.mep-employer-publication-explainer > p small { display: block; }
.mep-employer-publication-explainer > p b { font-size: 10px; }
.mep-employer-publication-explainer > p small { margin-top: 2px; color: var(--mep-shell-muted); font-size: 8px; }
.mep-employer-publication-explainer > i { color: #a49bb8; font-style: normal; }

.mep-employer-publication-bar.is-pro {
  position: sticky;
  bottom: 12px;
  z-index: 25;
  box-shadow: 0 10px 28px rgba(39,31,57,.12);
  backdrop-filter: blur(12px);
  background: rgba(248,246,252,.97);
}

.mep-employer-job-list-main {
  display: grid !important;
  gap: 5px !important;
}
.mep-employer-job-list-main .mep-pro-status {
  width: max-content;
  font-size: 8px;
}
.mep-employer-job-list-main small { color: var(--mep-shell-muted); font-size: 9px; }
.mep-employer-job-actions form { margin: 0; }
.mep-employer-job-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mep-employer);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

/* ----- ATS ----- */
.mep-employer-ats-shell { min-width: 0; }
.mep-employer-ats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.mep-employer-ats-head h2 { margin: 2px 0 4px; font-size: 27px; letter-spacing: -.04em; }
.mep-employer-ats-head p { margin: 0; color: var(--mep-shell-muted); font-size: 11px; }
.mep-employer-ats-summary { display: flex; gap: 6px; }
.mep-employer-ats-summary span {
  min-width: 74px;
  padding: 8px 9px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 10px;
  background: #fff;
  color: var(--mep-shell-muted);
  font-size: 8px;
  text-align: center;
}
.mep-employer-ats-summary b { display: block; margin-bottom: 2px; color: var(--mep-shell-ink); font-size: 15px; }

.mep-employer-ats-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}
.mep-employer-ats-layout.has-candidate {
  grid-template-columns: minmax(0, 1fr) 390px;
}
.mep-employer-kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(185px, 1fr));
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.mep-ats-column {
  min-width: 185px;
  border: 1px solid var(--mep-shell-line);
  border-radius: 14px;
  background: #f7f9f8;
}
.mep-ats-column > header {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--mep-shell-line);
  background: rgba(255,255,255,.72);
  border-radius: 14px 14px 0 0;
}
.mep-ats-column > header > div { display: flex; align-items: center; gap: 7px; }
.mep-ats-column > header > div > span { width: 7px; height: 7px; border-radius: 999px; background: #9ba69f; }
.mep-ats-column.is-new > header > div > span { background: #7b67b4; }
.mep-ats-column.is-reviewing > header > div > span { background: #5878a9; }
.mep-ats-column.is-interview > header > div > span { background: #aa7e39; }
.mep-ats-column.is-shortlist > header > div > span { background: #a45b83; }
.mep-ats-column.is-hired > header > div > span { background: #3c8b65; }
.mep-ats-column.is-rejected > header > div > span { background: #9a6268; }
.mep-ats-column > header strong { font-size: 10px; }
.mep-ats-column > header > b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #eef1ef; color: #68746d; font-size: 8px; }
.mep-ats-column-body { min-height: 150px; display: grid; align-content: start; gap: 7px; padding: 8px; }
.mep-ats-column-empty { padding: 18px 8px; color: #99a29e; font-size: 9px; text-align: center; }

.mep-ats-card {
  display: block;
  padding: 9px;
  border: 1px solid #e2e7e4;
  border-radius: 11px;
  background: #fff;
  color: var(--mep-shell-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 3px 9px rgba(25,37,31,.035);
}
.mep-ats-card:hover,
.mep-ats-card.is-selected { border-color: #bcaee1; box-shadow: 0 6px 17px rgba(74,57,132,.09); }
.mep-ats-card-person { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: center; }
.mep-ats-card-person p { margin: 0; min-width: 0; }
.mep-ats-card-person strong,
.mep-ats-card-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mep-ats-card-person strong { font-size: 10px; }
.mep-ats-card-person small { margin-top: 1px; color: var(--mep-shell-muted); font-size: 8px; }
.mep-ats-card-job { margin: 9px 0 7px; color: #59665f; font-size: 9px; line-height: 1.35; }
.mep-ats-card-foot { display: flex; justify-content: space-between; gap: 6px; color: #89928e; font-size: 8px; }
.mep-ats-card-foot b { color: #755fad; font-size: 8px; letter-spacing: .4px; }
.mep-ats-card > em { display: inline-block; margin-top: 7px; padding: 3px 5px; border-radius: 5px; background: #fff7dc; color: #876a20; font-size: 7px; font-style: normal; font-weight: 800; }

.mep-employer-candidate-panel {
  position: sticky;
  top: 138px;
  max-height: calc(100vh - 155px);
  overflow: auto;
  border: 1px solid var(--employer-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(36,29,52,.12);
}
.mep-employer-candidate-panel > header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #edf0ee;
  background: linear-gradient(145deg,#fbfafd,#f6f3fb);
}
.mep-employer-candidate-panel > header > a {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  color: #6d7470 !important;
  text-decoration: none !important;
  font-size: 17px;
}
.mep-ats-avatar.is-large { width: 48px; height: 48px; border-radius: 13px; font-size: 15px; }
.mep-employer-candidate-panel > header h3 { margin: 2px 0; padding-right: 24px; font-size: 19px; letter-spacing: -.03em; }
.mep-employer-candidate-panel > header div > span { color: var(--mep-shell-muted); font-size: 9px; }
.mep-candidate-contact { display: flex; flex-wrap: wrap; gap: 5px; padding: 11px 14px; border-bottom: 1px solid #edf0ee; }
.mep-candidate-contact a,
.mep-candidate-contact span { padding: 5px 7px; border-radius: 7px; background: #f5f7f6; color: #54615a !important; text-decoration: none !important; font-size: 8px; }
.mep-employer-candidate-panel > section { padding: 13px 15px; border-bottom: 1px solid #edf0ee; }
.mep-employer-candidate-panel > section > small { display: block; margin-bottom: 5px; color: #858f8a; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mep-employer-candidate-panel > section > strong { display: block; font-size: 11px; }
.mep-employer-candidate-panel > section > p,
.mep-employer-candidate-panel blockquote { margin: 5px 0 0; color: #5d6963; font-size: 10px; line-height: 1.55; }
.mep-employer-candidate-panel blockquote { padding: 9px 10px; border-left: 3px solid #c5b8e4; border-radius: 0 8px 8px 0; background: #faf8fd; }
.mep-candidate-skills { margin-top: 7px; padding: 9px; border-radius: 9px; background: #f7f9f8; color: #56635c; font-size: 9px; line-height: 1.55; }

.mep-candidate-decision-form { display: grid; gap: 10px; padding: 14px 15px; border-bottom: 1px solid #edf0ee; background: #fcfdfc; }
.mep-candidate-decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mep-candidate-decision-form label { display: grid; gap: 4px; margin: 0; }
.mep-candidate-decision-form label > span { color: #647068; font-size: 8px; font-weight: 800; }
.mep-candidate-decision-form select,
.mep-candidate-decision-form textarea { width: 100%; border: 1px solid #dce4df; border-radius: 9px; background: #fff; color: var(--mep-shell-ink); font: inherit; font-size: 10px; }
.mep-candidate-decision-form select { min-height: 36px; padding: 7px 9px; }
.mep-candidate-decision-form textarea { padding: 9px; resize: vertical; }
.mep-candidate-contact-check { grid-template-columns: auto 1fr !important; align-items: center; }
.mep-candidate-contact-check input { margin: 0; }

.mep-candidate-timeline { border-bottom: 0 !important; }
.mep-candidate-timeline > header { margin-bottom: 9px; }
.mep-candidate-timeline > header small,
.mep-candidate-timeline > header strong { display: block; }
.mep-candidate-timeline > header small { color: #858f8a; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.mep-candidate-timeline > header strong { margin-top: 2px; font-size: 11px; }
.mep-candidate-timeline ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mep-candidate-timeline li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 0 0 12px; }
.mep-candidate-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 26px; bottom: 1px; width: 1px; background: #e1e6e3; }
.mep-candidate-timeline li > span { width: 25px; height: 25px; display: grid; place-items: center; z-index: 1; border-radius: 8px; background: #f0edf7; color: #6651a8; font-size: 8px; font-weight: 900; }
.mep-candidate-timeline li strong { display: block; font-size: 9px; }
.mep-candidate-timeline li p { margin: 2px 0 !important; font-size: 8px !important; }
.mep-candidate-timeline li time { color: #929b96; font-size: 7px; }

.mep-pro-empty.is-compact { padding: 18px; }
.mep-empty-icon { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 11px; background: var(--employer-soft); color: var(--employer-accent); font-size: 16px; }

@media (max-width: 1280px) {
  .mep-employer-kpi-grid.is-rich { grid-template-columns: repeat(3, 1fr); }
  .mep-employer-editor-grid { grid-template-columns: 1fr; }
  .mep-employer-job-live-preview { display: none; }
  .mep-employer-ats-layout.has-candidate { grid-template-columns: minmax(0,1fr) 350px; }
}

@media (max-width: 1040px) {
  .mep-employer-company-layout,
  .mep-employer-dashboard-grid.is-pro,
  .mep-employer-jobs-layout.is-finished,
  .mep-employer-ats-layout.has-candidate { grid-template-columns: 1fr; }
  .is-sticky-card,
  .mep-employer-candidate-panel { position: static; max-height: none; }
  .mep-employer-company-preview { grid-row: 1; }
  .mep-employer-company-preview .mep-employer-improve-card { display: none; }
  .mep-employer-jobs-list { position: static; max-height: none; }
  .mep-employer-candidate-panel { order: -1; }
  .mep-employer-editor-steps { top: 116px; }
}

@media (max-width: 760px) {
  .mep-employer-kpi-grid.is-rich { grid-template-columns: repeat(2, 1fr); }
  .mep-employer-ats-head { align-items: flex-start; flex-direction: column; }
  .mep-employer-ats-summary { width: 100%; }
  .mep-employer-ats-summary span { flex: 1; }
  .mep-employer-editor-head { align-items: flex-start; flex-direction: column; }
  .mep-employer-quality-pill { width: 100%; }
  .mep-employer-editor-steps { position: static; grid-template-columns: repeat(2, 1fr); }
  .mep-employer-publication-explainer { grid-template-columns: auto 1fr; }
  .mep-employer-publication-explainer > i { display: none; }
  .mep-employer-form-step { padding: 14px; }
  .mep-employer-company-form .mep-pro-form-actions.is-sticky { position: static; align-items: flex-start; flex-direction: column; }
  .mep-candidate-decision-grid { grid-template-columns: 1fr; }
  .mep-employer-job-list.is-dashboard article { grid-template-columns: 1fr; }
  .mep-employer-job-health { display: none !important; }
}

@media (max-width: 520px) {
  .mep-employer-kpi-grid.is-rich { grid-template-columns: 1fr 1fr; }
  .mep-employer-kpi-grid.is-rich article { padding: 12px 10px; }
  .mep-employer-editor-steps span { font-size: 9px; }
  .mep-employer-kanban { grid-template-columns: repeat(6, 178px); }
  .mep-ats-column { min-width: 178px; }
}

.mep-company-tagline { display: block; margin: -4px 0 10px; color: #675590; font-size: 11px; line-height: 1.45; }
.mep-company-values { margin-top: 12px; padding: 10px; border-radius: 10px; background: #f8f7fb; }
.mep-company-values small { display: block; margin-bottom: 4px; color: #817790; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.mep-company-values p { margin: 0 !important; font-size: 9px !important; line-height: 1.55 !important; }
.mep-company-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.mep-job-facts dd small { display: block; margin-top: 3px; color: #89938e; font-size: 8px; font-weight: 500; line-height: 1.35; }

/* =========================================================
   Espace Employeur — fiche publique & catalogue enrichi
   ========================================================= */
.mep-job-company a{color:inherit;text-decoration:none}
.mep-job-company a:hover{text-decoration:underline}
.mep-job-company-tagline{margin:4px 0 9px!important;color:#70828d!important;font-size:.7rem!important;font-style:italic}
.mep-job-search{grid-template-columns:1.5fr 1fr .72fr .82fr .92fr auto}

.mep-company-public-page{display:grid;gap:18px}
.mep-company-public-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:center;padding:28px;border:1px solid #d8e4df;border-radius:26px;background:linear-gradient(135deg,#fff 0%,#f4faf7 56%,#f5f7ff 100%);box-shadow:0 16px 42px rgba(22,52,43,.07)}
.mep-company-public-mark{display:grid;place-items:center;width:76px;height:76px;border-radius:22px;background:linear-gradient(145deg,#176b53,#245aa6);color:#fff;font-size:1.5rem;font-weight:950;box-shadow:0 12px 30px rgba(31,94,75,.2)}
.mep-company-public-heading{min-width:0}
.mep-company-public-kicker{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#647a70;font-size:.72rem;font-weight:800}
.mep-company-public-heading h1{margin:7px 0 5px;color:#173d32;font-size:clamp(2rem,4vw,3rem);line-height:1.02;letter-spacing:-.045em}
.mep-company-public-tagline{margin:0;color:#526b61;font-size:1rem;line-height:1.55}
.mep-company-public-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.mep-company-public-meta span{padding:6px 9px;border:1px solid #dce7e2;border-radius:10px;background:rgba(255,255,255,.76);color:#557066;font-size:.67rem;font-weight:750}
.mep-company-public-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:300px}
.mep-company-public-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}
.mep-company-public-layout>main{display:grid;gap:16px;min-width:0}
.mep-company-public-layout>aside{position:sticky;top:94px;display:grid;gap:12px}
.mep-company-story,.mep-company-culture{margin:0}
.mep-company-public-facts dl{display:grid;gap:0;margin:14px 0 0}
.mep-company-public-facts dl div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 0;border-top:1px solid #edf2ef}
.mep-company-public-facts dt{color:#74857e;font-size:.68rem;font-weight:700}
.mep-company-public-facts dd{margin:0;color:#24473c;text-align:right;font-size:.72rem;font-weight:850}
.mep-company-public-trust p{color:#63766f;font-size:.76rem;line-height:1.6}
.mep-company-public-trust a{color:#236650;font-size:.72rem;font-weight:850;text-decoration:none}
.mep-company-public-jobs{display:grid;gap:12px;scroll-margin-top:100px}
.mep-company-public-jobs .mep-pro-section-head{margin-bottom:0}
.mep-company-public-jobs .mep-job-card h3{margin:5px 0 8px;font-size:1.05rem;letter-spacing:-.02em}
.mep-company-public-jobs .mep-job-card h3 a{color:var(--mep-pro-ink,#173746);text-decoration:none}

@media(max-width:1150px){
  .mep-job-search{grid-template-columns:1fr 1fr 1fr}
  .mep-job-search .is-query{grid-column:span 2}
  .mep-company-public-layout{grid-template-columns:1fr}
  .mep-company-public-layout>aside{position:static;grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .mep-job-search{grid-template-columns:1fr}
  .mep-job-search .is-query{grid-column:auto}
  .mep-company-public-hero{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:20px}
  .mep-company-public-mark{width:58px;height:58px;border-radius:17px;font-size:1.15rem}
  .mep-company-public-actions{grid-column:1/-1;justify-content:flex-start;max-width:none}
  .mep-company-public-layout>aside{grid-template-columns:1fr}
}
.mep-employer-preview-public-link{display:inline-flex;margin-top:12px;color:#1f654f;font-size:.72rem;font-weight:900;text-decoration:none}
.mep-employer-preview-public-link:hover{text-decoration:underline}
