/* Correctif final ciblé — chargé après tous les styles historiques. */
:root{
  --mep-release-green:#1f765f;
  --mep-release-green-dark:#155746;
  --mep-release-green-soft:#e9f4f0;
  --mep-release-ink:#17243a;
  --mep-release-muted:#657287;
  --mep-release-line:#d9e3df;
  --mep-release-bg:#f5f8f7;
}

/* Les blocs fonctionnels ajoutés à l'étape 2 doivent rester de vrais composants. */
.mep-module-command{
  box-sizing:border-box;
  width:100%;
  margin:18px 0 22px;
}
.mep-module-command > div{min-width:0}
.mep-module-command > div > strong{display:block;line-height:1.4}
.mep-module-command nav{align-items:center}
.mep-module-command nav :is(a,button){white-space:nowrap}

/* CV & lettres */
.documents-command{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
}
.documents-command .mep-module-search{min-width:0}
.documents-command-stats{
  display:flex!important;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.documents-command-stats span{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 13px;
}
.documents-offer-helper{
  overflow:hidden;
  box-shadow:0 10px 26px rgba(23,76,60,.05);
}
.documents-offer-helper summary{align-items:center}

/* Candidatures */
.applications-command{
  display:flex;
  align-items:center;
}
.applications-command > div{flex:1}
.applications-command nav{justify-content:flex-end}
.applications-command nav button,
.applications-command nav a{
  min-height:42px;
  border-radius:12px;
}

/* Parcours */
.parcours-page .mep-module-command,
.mep-module-command[aria-label="Actions rapides du parcours"]{
  align-items:center;
  padding:18px 20px;
}
.mep-module-command[aria-label="Actions rapides du parcours"] nav a{
  min-width:118px;
}

/* Projet professionnel : contraste garanti, même avec les anciennes règles. */
.career-page .career-hero,
.career-page .career-hero *{box-sizing:border-box}
.career-page .career-hero h1{
  color:#fff!important;
  text-shadow:none!important;
}
.career-page .career-hero > div > p:not(.career-eyebrow){color:#e7f0f4!important}
.career-page .career-hero .career-score :is(span,strong){color:#fff!important}

/* Mon compte : aucun badge bleu hérité. */
.account-page .account-formations-summary{
  border-color:var(--mep-release-line)!important;
  background:#f7faf9!important;
}
.account-page .account-formations-count{
  display:grid!important;
  place-items:center;
  flex:0 0 46px;
  width:46px!important;
  height:46px!important;
  padding:0!important;
  border-radius:50%!important;
  background:var(--mep-release-green)!important;
  color:#fff!important;
  font-weight:900!important;
}
.account-page .account-formations-summary > span:not(.account-formations-count),
.account-page .account-formations-summary > strong{
  color:var(--mep-release-muted)!important;
}
.account-page .account-path-count strong{color:var(--mep-release-green-dark)!important}

/* Article : vraie surface de lecture, sans toucher au contenu éditorial. */
.article-public{
  box-sizing:border-box;
  width:min(980px,calc(100% - 40px))!important;
  margin:34px auto 80px!important;
  padding:clamp(28px,5vw,58px)!important;
  border:1px solid var(--mep-release-line)!important;
  border-radius:28px!important;
  background:#fff!important;
  box-shadow:0 20px 55px rgba(21,55,46,.08)!important;
}
.article-actions-admin{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin:0 0 28px;
  flex-wrap:wrap;
}
.article-fil-ariane{margin-bottom:28px!important}
.article-fil-ariane a,
.article-public-categorie,
.article-public-dossier a,
.article-retour{color:var(--mep-release-green)!important}
.article-public-entete h1{
  max-width:860px;
  color:var(--mep-release-ink)!important;
  font-size:clamp(2.25rem,5vw,4rem)!important;
  line-height:1.04!important;
}
.article-public-accroche{
  max-width:820px;
  color:var(--mep-release-muted)!important;
}
.article-public-dossier{
  border-left-color:var(--mep-release-green)!important;
  background:var(--mep-release-green-soft)!important;
}
.article-public-contenu{
  color:#334155!important;
  font-size:1.075rem!important;
  line-height:1.85!important;
}
.article-public-contenu :is(h2,h3){color:var(--mep-release-ink)!important}
.article-public-conclusion{background:var(--mep-release-green-soft)!important}

@media(max-width:900px){
  .documents-command{grid-template-columns:1fr}
  .documents-command-stats{justify-content:flex-start}
  .applications-command{align-items:stretch;flex-direction:column}
  .applications-command nav{justify-content:flex-start}
}
@media(max-width:650px){
  .article-public{
    width:calc(100% - 20px)!important;
    margin:18px auto 60px!important;
    padding:24px 18px!important;
    border-radius:20px!important;
  }
  .article-actions-admin{justify-content:stretch}
  .article-actions-admin .button{width:100%;text-align:center}
  .mep-module-command nav{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .mep-module-command nav :is(a,button){width:100%}
  .documents-command-stats{width:100%}
  .documents-command-stats span{flex:1;justify-content:center}
}
