.mpo-cand { margin: 0 0 32px; color: #0c1a3c; }
.mpo-cand-total { margin: 0 0 20px; font-size: 1.15rem; font-weight: 600; }

.mpo-cand-filtres { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid #d5d9e4; border-radius: 6px; background: #f6f7fb; }
.mpo-cand-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.mpo-cand-etiquette { font-weight: 700; min-width: 140px; }
.mpo-cand-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.mpo-cand-puce { min-height: 44px; padding: 0 16px; border: 2px solid #0c1a3c; border-radius: 22px; background: #fff; color: #0c1a3c; font: 600 14px "Open Sans", sans-serif; cursor: pointer; }
.mpo-cand-puce:hover { border-color: #cd1226; color: #cd1226; }
.mpo-cand-puce[aria-pressed="true"] { background: #cd1226; border-color: #cd1226; color: #fff; }
.mpo-cand-puce:focus-visible, .mpo-cand-rech:focus-visible, .mpo-cand-lien:focus-visible { outline: 3px solid #0c1a3c; outline-offset: 2px; }
.mpo-cand-n { font-weight: 400; opacity: .85; }
.mpo-cand-n::before { content: "("; }
.mpo-cand-n::after { content: ")"; }
.mpo-cand-rech { flex: 1; min-width: 220px; max-width: 420px; min-height: 44px; padding: 0 14px; border: 1px solid #8a93a8; border-radius: 4px; font: 400 16px "Open Sans", sans-serif; box-sizing: border-box; }

.mpo-cand-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.mpo-cand-fiche { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 2px solid var(--mp-c, #8a93a8); border-top-width: 14px; border-radius: 6px; background: #fff; scroll-margin-top: 110px; }
.mpo-cand-fiche:target { box-shadow: 0 0 0 4px rgba(12, 26, 60, .28); }
.mpo-cand-fiche[hidden] { display: none; }
.mpo-cand-fiche.est-retire { background: #f1f2f6; }
.mpo-cand-tete { display: flex; align-items: center; gap: 16px; }
.mpo-cand-avatar, .mpo-cand-photo { width: 72px; height: 72px; flex: none; border-radius: 50%; }
.mpo-cand-avatar { display: flex; align-items: center; justify-content: center; background: #e6e9f2; color: #0c1a3c; font: 700 22px "Libre Baskerville", serif; }
.mpo-cand-photo { object-fit: cover; }
.mpo-cand-photo, .mpo-cand-avatar { box-sizing: border-box; border: 3px solid var(--mp-c, #8a93a8); }
.est-retire .mpo-cand-avatar { background: #d5d9e4; color: #4a5370; }
.mpo-cand-nom { margin: 0; font: 700 18px/1.3 "Libre Baskerville", serif; }
.est-retire .mpo-cand-nom { color: #4a5370; }
.mpo-cand-parti { margin-top: 4px; font-size: 14px; color: #4a5370; }
.mpo-cand-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mpo-cand-badge { padding: 4px 10px; border-radius: 12px; background: #e6e9f2; color: #0c1a3c; font-size: 13px; font-weight: 600; }
.mpo-cand-statut { background: #0c1a3c; color: #fff; }
.est-retire .mpo-cand-statut { background: #4a5370; }
.mpo-cand-lien { font-size: 14px; font-weight: 600; color: #cd1226; }
.mpo-cand-vide { margin-top: 24px; font-weight: 600; }
.mpo-cand-note { margin-top: 28px; font-size: 14px; color: #4a5370; }

@media (max-width: 600px) {
	.mpo-cand-etiquette { min-width: 0; width: 100%; }
	.mpo-cand-rech { max-width: none; width: 100%; }
}
.mpo-cand-bio { margin: 0; font-size: 14px; line-height: 1.5; color: #1f2a47; }
.mpo-cand-site { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid #cd1226; border-radius: 22px; background: #fff; color: #cd1226; font: 600 14px "Open Sans", sans-serif; text-decoration: none; }
.mpo-cand-site:hover { background: #cd1226; color: #fff; }
.mpo-cand-site:focus-visible { outline: 3px solid #0c1a3c; outline-offset: 2px; }
.mpo-cand .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mpo-cand .mp-legende { margin: 0 0 6px; }
.mpo-cand-poste { margin: 8px 0 22px; text-align: left; }

/* Fiche ouverte seule, au centre */
.mpo-cand-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.mpo-cand-dialog::backdrop { background: rgba(12, 26, 60, .66); }
.mpo-cand-dialog .mpo-cand-fiche { margin: 0; max-height: calc(100vh - 140px); overflow: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.mpo-cand-fermer { display: block; margin: 12px auto 0; min-height: 44px; padding: 0 28px; border: 2px solid #fff; border-radius: 22px; background: #0c1a3c; color: #fff; font: 600 15px "Open Sans", sans-serif; cursor: pointer; }
.mpo-cand-fermer:hover { background: #cd1226; border-color: #cd1226; }
.mpo-cand-fermer:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
