/* =====================================================================
   Recrutement WURI (GIP-PNVB) - feuille de style unique (aucun CDN)
   Palette tirée du logo PNVB : vert (#016104), rouge (#CB0300), jaune (#FDC403)
   ===================================================================== */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  /* Couleurs du logo */
  --vert: #0a6414;
  --vert-fonce: #053f0b;
  --vert-2: #13801f;
  --vert-pale: #e6f2e4;
  --rouge: #cb1a10;
  --rouge-fonce: #9c1208;
  --rouge-pale: #fdecea;
  --jaune: #fdc403;
  --jaune-pale: #fff6d8;
  /* Neutres */
  --fond: #f3f5f0;
  --papier: #ffffff;
  --champ: #fbfcfa;
  --encre: #17221a;
  --gris: #56635a;
  --ligne: #d3dbd1;
  --ligne-2: #e7ece5;
  --r-sm: 8px;
  --r-md: 14px;
  --ombre: 0 1px 2px rgba(5, 63, 11, .06), 0 10px 28px -14px rgba(5, 63, 11, .28);
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  /* Ruban tricolore du logo */
  --ruban: linear-gradient(90deg, var(--rouge) 0 33.4%, var(--jaune) 33.4% 66.7%, var(--vert-2) 66.7% 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--encre); background: var(--fond); }
img { max-width: 100%; }
a { color: var(--vert-2); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.req { color: var(--rouge); font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.upper { text-transform: uppercase; }
.ruban { height: 6px; background: var(--ruban); }

/* ---------------- Logo ---------------- */
.logo-badge {
  display: block; flex: 0 0 auto; overflow: hidden;
  background: #fff; border-radius: 18px; padding: 6px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}
.logo-badge img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

/* ---------------- En-tête public ---------------- */
.band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(253, 196, 3, .18) 0, transparent 46%),
    linear-gradient(160deg, var(--vert-2) 0%, var(--vert) 45%, var(--vert-fonce) 100%);
}
/* Élan du coureur du logo : bande rouge diagonale */
.band::after {
  content: ""; position: absolute; right: -80px; top: -40px; width: 280px; height: 520px;
  background: linear-gradient(180deg, var(--rouge) 0 70%, var(--jaune) 70% 100%);
  transform: rotate(32deg); opacity: .9; pointer-events: none;
}
.band-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 44px 24px 64px; }
.site-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; min-width: 0; }
.site-brand > div { min-width: 0; flex: 1 1 auto; }
.site-brand .logo-badge { flex: 0 0 auto; width: 120px; height: 120px; margin: 0 auto; }
.band .org { margin: 0 0 10px; font-size: .92rem; font-weight: 600; color: var(--jaune); }
.band h1 { font-size: clamp(1.9rem, 4.8vw, 3.2rem); font-weight: 850; letter-spacing: -.025em; max-width: 22ch; margin-bottom: .35em; }
.band .lead { max-width: 78ch; color: #e1efe0; margin: 0; }
.band .req { color: var(--jaune); }

/* ---------------- Mise en page ---------------- */
.wrap { max-width: 960px; margin: -36px auto 0; padding: 0 16px 48px; position: relative; z-index: 2; }
.panel { background: var(--papier); border-radius: var(--r-md); box-shadow: var(--ombre); padding: 32px; }
.public .panel + .panel, .public .alert + .panel { margin-top: 20px; }
.foot { text-align: center; color: var(--gris); font-size: .85rem; padding: 0 16px 32px; }
.foot a { color: var(--vert-2); font-weight: 600; }

/* ---------------- Étapes ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0; margin: 0 0 30px; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-size: .8rem; line-height: 1.2; color: var(--gris); cursor: default; }
.steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--ligne-2); transition: background .3s; }
.steps li span { display: none; }
.steps li.is-done { cursor: pointer; color: var(--vert-2); }
.steps li.is-done::before { background: var(--vert-2); }
.steps li.is-current { color: var(--encre); font-weight: 700; }
.steps li.is-current::before { background: var(--jaune); }
.step-title-mobile { display: none; }

/* ---------------- Formulaire ---------------- */
fieldset.step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.is-wizard fieldset.step { margin-bottom: 8px; }
legend { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; padding: 0; margin-bottom: 22px; color: var(--vert-fonce); display: flex; align-items: center; gap: 12px; }
.legend-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--vert); color: var(--jaune); font-size: 1rem; font-weight: 800; flex: none; }
.subhead { font-weight: 700; color: var(--vert-fonce); margin: 8px 0 14px; padding-top: 18px; border-top: 1px dashed var(--ligne); }
.grid { display: grid; gap: 0 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f { margin-bottom: 18px; min-width: 0; }
.f label, .lbl { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.lbl em, .f label em { font-style: normal; font-weight: 400; color: var(--gris); margin-left: 4px; }
input[type=text], input[type=tel], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px : évite le zoom automatique sur iOS */
  color: inherit; background-color: var(--champ);
  border: 1.5px solid var(--ligne); border-radius: var(--r-sm); padding: 10px 12px; min-height: 48px;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
input[type=date] { -webkit-appearance: none; appearance: none; }
select { -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--vert) 50%), linear-gradient(135deg, var(--vert) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aebbb0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-2); background-color: #fff; box-shadow: 0 0 0 3px rgba(19, 128, 31, .18); }
select:disabled, input:disabled { background-color: #eef1ec; color: #93a096; cursor: not-allowed; }
input[readonly] { background-color: #eef1ec; }
[aria-invalid="true"] { border-color: var(--rouge) !important; background-color: #fff8f7 !important; }
.f-err { color: var(--rouge-fonce); font-size: .86rem; font-weight: 500; margin: 6px 0 0; padding-left: 21px; position: relative; }
.f-err::before { content: "!"; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.hint { color: var(--gris); font-size: .86rem; margin: 6px 0 0; min-height: 1em; }
.hint.warn { color: var(--rouge-fonce); font-weight: 600; }
.autre { margin-top: 8px; }
.check-inline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; margin-top: 10px; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--vert); flex: none; }

/* Préfixe +226 */
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--vert-pale); color: var(--vert-fonce);
  border: 1.5px solid var(--ligne); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); font-weight: 700; font-size: .9rem; }
.prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; letter-spacing: .06em; min-width: 0; }
.prefix-wa span { background: #dcf5e3; color: #0e6b2f; }

/* Boutons segmentés (radios) */
.seg { display: inline-flex; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); overflow: hidden; background: var(--champ); max-width: 100%; }
.seg label { margin: 0; position: relative; flex: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; padding: 10px 20px; min-height: 45px; font-weight: 500; cursor: pointer; text-align: center; }
.seg label + label span { border-left: 1.5px solid var(--ligne); }
.seg input:checked + span { background: var(--vert); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--jaune); outline-offset: -3px; }
.seg-sm span { padding: 8px 20px; min-height: 42px; }
.seg:has([aria-invalid="true"]), .cards2:has([aria-invalid="true"]) > .card-radio > span { border-color: var(--rouge); }

/* Cartes radio (pièce) */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-radio { position: relative; margin: 0 !important; cursor: pointer; }
.card-radio input { position: absolute; opacity: 0; }
.card-radio > span { display: block; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); padding: 14px 16px 14px 46px; position: relative; height: 100%; background: var(--champ); }
.card-radio > span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9aa89d; background: #fff; }
.card-radio strong { display: block; font-size: 1.05rem; }
.card-radio small { color: var(--gris); font-weight: 400; }
.card-radio input:checked + span { border-color: var(--vert); background: var(--vert-pale); }
.card-radio input:checked + span::before { border-color: var(--vert); background: var(--vert); box-shadow: inset 0 0 0 3px #fff; }
.card-radio input:focus-visible + span { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* Puces (langues, domaines) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0 !important; position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 15px; border: 1.5px solid var(--ligne); border-radius: 99px; font-weight: 500; font-size: .93rem; background: var(--champ); cursor: pointer; user-select: none; }
.chip:hover span { border-color: var(--vert-2); }
.chip input:checked + span { background: var(--vert); border-color: var(--vert); color: #fff; }
.chip input:checked + span::before { content: "✓ "; color: var(--jaune); font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--jaune); outline-offset: 2px; }
.intervention-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intervention-chips .chip span { display: block; border-radius: var(--r-sm); padding: 12px 14px; height: 100%; }
.intervention-choice .hint { margin: 0 0 12px; }

/* Pot de miel */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Certification + navigation assistant */
.certif { padding: 16px 18px; background: var(--jaune-pale); border-left: 5px solid var(--jaune); border-radius: var(--r-sm); margin: 8px 0 22px; }
.certif .check-inline { margin: 0; }
.wizard-nav { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ligne-2); padding-top: 20px; }
.wizard-count { margin-right: auto; color: var(--gris); font-size: .9rem; order: -1; }

/* ---------------- Boutons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem var(--font);
  padding: 11px 22px; min-height: 46px; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--vert); color: #fff; }
.btn-primary:hover { background: var(--vert-fonce); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: #fff; border-color: var(--ligne); color: var(--encre); }
.btn-ghost:hover { border-color: var(--vert-2); color: var(--vert); }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-danger:hover { background: var(--rouge-fonce); }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .85rem; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.inline-delete { margin: 0; }

/* ---------------- Alertes ---------------- */
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin: 0 0 20px; font-weight: 500; }
.alert:focus { outline: none; }
.alert-err { background: var(--rouge-pale); color: var(--rouge-fonce); border-left: 5px solid var(--rouge); }
.alert-ok { background: var(--vert-pale); color: var(--vert-fonce); border-left: 5px solid var(--vert-2); }
.alert-info { background: var(--jaune-pale); color: #5e4600; border-left: 5px solid var(--jaune); }
.public .wrap > .alert { box-shadow: var(--ombre); }

/* ---------------- Récépissé ---------------- */
.band-mini .band-inner { padding: 22px 24px 64px; }
.receipt { text-align: center; padding: 40px 32px; max-width: 720px; margin: 0 auto; }
.receipt-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; text-align: left; }
.receipt-brand .logo-badge { width: 76px; height: 76px; padding: 4px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.receipt-org { color: var(--vert-fonce); font-size: 1.15rem; font-weight: 800; }
.receipt-structure { color: var(--gris); font-size: .86rem; line-height: 1.35; max-width: 42ch; }
.seal { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vert); color: var(--jaune); font-size: 2rem; font-weight: 800; box-shadow: 0 0 0 6px var(--vert-pale); }
.receipt h1 { color: var(--vert-fonce); }
.receipt-num { margin: 22px auto; display: inline-flex; flex-direction: column; padding: 14px 28px; border: 2px dashed var(--vert-2); border-radius: var(--r-md); background: var(--jaune-pale); }
.receipt-num small { color: var(--gris); }
.receipt-num strong { font-size: 1.8rem; letter-spacing: .06em; color: var(--vert-fonce); font-variant-numeric: tabular-nums; }
.receipt-summary { text-align: left; max-width: 460px; margin: 0 auto; border-top: 1px solid var(--ligne-2); padding-top: 12px; }
.receipt-summary p { margin: 6px 0; }
.receipt-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.closed { text-align: center; }

/* =====================================================================
   ESPACE DE GESTION
   ===================================================================== */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--vert) 0%, var(--vert-fonce) 100%); color: #d5e7d4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 22px 20px 18px; color: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.brand .logo-badge { width: 88px; height: 88px; margin-bottom: 8px; }
.brand strong { display: block; font-size: 1.15rem; font-weight: 800; }
.brand small { color: var(--jaune); font-weight: 600; }
.side nav { display: flex; flex-direction: column; padding: 8px 12px; gap: 2px; flex: 1; }
.side nav a { color: #d5e7d4; text-decoration: none; padding: 11px 12px; border-radius: var(--r-sm); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side nav a.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 var(--jaune); }
.side nav .tag-Nouveau { background: var(--jaune); color: var(--vert-fonce); }
.side .who { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.side .who small { color: #a9c7a8; }
.side .who a { color: var(--jaune); font-weight: 600; }
.mobile-bar, .nav-close { display: none; }
.main { padding: 28px 32px 48px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.75rem; font-weight: 850; letter-spacing: -.02em; margin: 0; color: var(--vert-fonce); }
.topbar p { margin: 4px 0 0; color: var(--gris); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin .panel { padding: 22px; margin-bottom: 20px; }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--papier); border-radius: var(--r-md); box-shadow: var(--ombre); padding: 18px 20px; border-top: 4px solid var(--ligne-2); }
.kpi b { display: block; font-size: 2rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--vert-fonce); }
.kpi span { color: var(--gris); font-size: .9rem; }
.kpi.k-nouveau { border-top-color: var(--jaune); }
.kpi.k-valide { border-top-color: var(--vert-2); }
.kpi.k-age { border-top-color: var(--rouge); }
.kpi.main-kpi { background: var(--vert); color: #fff; border-top-color: var(--jaune); position: relative; overflow: hidden; }
.kpi.main-kpi::after { content: ""; position: absolute; right: -44px; top: -30px; width: 56px; height: 180px; background: var(--rouge); transform: rotate(32deg); opacity: .85; }
.kpi.main-kpi b { color: #fff; font-size: 2.8rem; position: relative; z-index: 1; }
.kpi.main-kpi span { color: #d7ead6; position: relative; z-index: 1; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel h2 { font-size: 1.05rem; font-weight: 750; margin-bottom: 14px; color: var(--vert-fonce); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: .88rem; text-decoration: none; color: inherit; }
.bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { display: block; height: 12px; border-radius: 6px; background: var(--vert-2); min-width: 2px; }
.bar.alt i { background: var(--jaune); }
a.bar:hover i { background: var(--vert-fonce); }
.bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--gris); }
.sexe-ratio { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 8px 0 6px; background: var(--ligne-2); }
.sexe-ratio i:first-child { background: var(--vert-2); }
.sexe-ratio i:last-child { background: var(--rouge); }
.legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--gris); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--vert-2); }
.legend span + span::before { background: var(--rouge); }

/* Filtres */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; align-items: end; }
.filters .f { margin: 0; }
.filters label { font-size: .8rem; color: var(--gris); font-weight: 600; }
.filters input, .filters select { min-height: 42px; padding-top: 7px; padding-bottom: 7px; font-size: .93rem; }
.filters-more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.filters-bar { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
details.more { grid-column: 1 / -1; }
details.more summary { cursor: pointer; color: var(--vert-2); font-size: .9rem; font-weight: 700; margin: 10px 0 4px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -22px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 700; color: var(--gris); font-size: .78rem; padding: 8px 10px; border-bottom: 2px solid var(--ligne); white-space: nowrap; background: #fafcf9; }
td { padding: 8px 10px; border-bottom: 1px solid var(--ligne-2); vertical-align: middle; line-height: 1.25; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
tbody tr:hover { background: #f5f9f3; }
td .sub { display: block; color: var(--gris); font-size: .78rem; line-height: 1.2; margin-top: 2px; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: var(--vert-pale); color: var(--vert-fonce); }
.tag-Nouveau { background: var(--jaune-pale); color: #6b4f00; }
.tag-Validé { background: var(--vert-pale); color: var(--vert-fonce); }
.tag-Rejeté { background: var(--rouge-pale); color: var(--rouge-fonce); }
.tag-h { background: #eef0ff; color: #2c3a7a; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-list .tag { white-space: normal; }
.empty { text-align: center; padding: 40px 16px; color: var(--gris); }
.pager { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding-top: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--gris); }
.pager nav { display: flex; gap: 4px; flex-wrap: wrap; }
.pager a, .pager b { padding: 7px 12px; border-radius: var(--r-sm); text-decoration: none; border: 1px solid var(--ligne); color: var(--encre); }
.pager b { background: var(--vert); color: #fff; border-color: var(--vert); }

/* Liste candidats compacte (bureau) */
.compact table { font-size: .84rem; }
.compact th { padding: 6px 8px; font-size: .72rem; }
.compact td { padding: 5px 8px; line-height: 1.1; }
.compact td .sub { display: none; }
.compact .btn-icon { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 8px; font-size: .95rem; line-height: 1; }
.compact td:not(:nth-child(2)) { white-space: nowrap; }

/* Fiche */
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fiche .panel { margin-bottom: 0; }
.fiche h2 + dl.kv + h2, .fiche .kv + h2 { margin-top: 22px; }
dl.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--gris); font-size: .88rem; }
dl.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.fiche-head { display: flex; gap: 18px; align-items: center; min-width: 0; }
.fiche-head h1 { overflow-wrap: anywhere; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; background: var(--vert); color: var(--jaune); flex: none; }
.statut-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.statut-form select, .statut-form input { min-height: 42px; padding-top: 6px; padding-bottom: 6px; width: auto; }
.statut-form input[type=text] { flex: 1; min-width: 180px; }
.danger-zone { margin-top: 22px; border-top: 1px solid var(--ligne-2); padding-top: 16px; }

/* Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(160deg, var(--vert-2) 0%, var(--vert) 45%, var(--vert-fonce) 100%); }
.login .panel { width: 100%; max-width: 420px; padding: 0; overflow: hidden; }
.login .panel > div:not(.ruban) { padding: 28px; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.login-brand .logo-badge { width: 72px; height: 72px; padding: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.login h1 { font-size: 1.35rem; font-weight: 850; margin: 0; color: var(--vert-fonce); }
.login .hint { margin: 2px 0 0; }
.login .alert { margin-bottom: 16px; }
.btn-block { width: 100%; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .filters-more { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi.main-kpi { grid-column: 1 / -1; }
  .split, .fiche { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .f:first-child { grid-column: 1 / -1; }
  .filters-more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Gestion : barre supérieure + menu latéral coulissant */
  .admin { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30;
    background: var(--vert); color: #fff; padding: 10px 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
  .mobile-bar .logo-badge { width: 46px; height: 46px; padding: 3px; border-radius: 10px; box-shadow: none; }
  .mobile-bar .logo-badge img { border-radius: 4px; }
  .mobile-bar strong { flex: 1; min-width: 0; font-size: 1rem; line-height: 1.15; }
  .mobile-bar strong small { display: block; color: var(--jaune); font-weight: 600; font-size: .75rem; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .12); color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .3); border-radius: var(--r-sm); padding: 8px 12px; font: 700 .9rem var(--font); cursor: pointer; min-height: 42px; }
  .menu-btn i { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .side { position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100%;
    transform: translateX(-102%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); visibility: hidden; }
  .nav-open .side { transform: none; visibility: visible; }
  .nav-close { display: block; position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .12); color: #fff; border: 0;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
  .nav-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .45); }
  .nav-open { overflow: hidden; }
  .main { padding: 20px 14px 40px; }
}
@media (max-width: 760px) {
  .g-2, .g-3, .g-4, .cards2, .intervention-chips { grid-template-columns: 1fr; }
  .panel { padding: 22px 16px; }
  /* Étapes : barre de progression + titre de l'étape courante */
  .steps { gap: 5px; margin-bottom: 8px; }
  .steps li { font-size: 0; gap: 0; }
  .step-title-mobile { display: block; margin: 0 0 20px; font-size: .85rem; color: var(--gris); }
  .step-title-mobile b { color: var(--encre); }
  legend { font-size: 1.2rem; margin-bottom: 16px; }
  .seg { display: flex; width: 100%; }
  .is-wizard .wizard-nav { position: sticky; bottom: 0; z-index: 5; background: #fff; margin: 0 -16px -22px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 18px -12px rgba(0, 0, 0, .25); border-radius: 0 0 var(--r-md) var(--r-md); }
  .wizard-nav { flex-wrap: wrap; }
  .is-wizard .wizard-count { display: none; }
  .wizard-count { width: 100%; text-align: center; font-size: .82rem; }
  .wizard-nav .btn { flex: 1; }
  .topbar h1 { font-size: 1.4rem; }
  .topbar .actions { width: 100%; }
  .topbar .actions .btn { flex: 1; }
  .filters, .filters-more { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters .f:first-child { grid-column: 1 / -1; }
  .filters-bar .btn { flex: 1; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 10px; }
  .bar { grid-template-columns: 96px 1fr 36px; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 1.6rem; }
  .kpi.main-kpi b { font-size: 2.2rem; }
  .fiche-head { gap: 12px; }
  .avatar { width: 48px; height: 48px; font-size: 1.1rem; }
  .statut-form select, .statut-form input[type=text], .statut-form .btn { width: 100%; }

  /* Tableaux → cartes empilées */
  .table-wrap.table-cards { margin: 0; overflow: visible; }
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-cards tr { border: 1px solid var(--ligne); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .table-cards tbody tr:hover { background: #fff; }
  .table-cards td, .table-cards td:first-child, .table-cards td:last-child { padding: 5px 0; border: 0; white-space: normal;
    display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; align-items: start; }
  .table-cards td::before { content: attr(data-label); color: var(--gris); font-size: .75rem; font-weight: 700; padding-top: 2px; }
  .table-cards td:not([data-label]) { display: block; }
  .table-cards td:not([data-label])::before { content: none; }
  .table-cards td .sub { display: block; }
  .table-cards td, .table-cards td * { white-space: normal !important; overflow-wrap: anywhere; }
  .table-cards td .tag { white-space: nowrap !important; }
  .table-cards .row-actions { justify-content: flex-end; padding-top: 8px; border-top: 1px dashed var(--ligne); margin-top: 4px; }
  .table-cards .btn-icon { width: auto; min-width: 48px; height: 42px; min-height: 42px; padding: 0 14px; }
}
@media (max-width: 640px) {
  .band::after { right: -150px; top: -60px; width: 190px; opacity: .55; }
  .band-inner { padding: 22px 16px 58px; }
  .site-brand .logo-badge { width: 84px; height: 84px; border-radius: 14px; padding: 4px; }
  .band .lead { max-width: 100%; }
  .band .org { font-size: .8rem; margin-bottom: 6px; }
  .band h1 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .band .lead { font-size: .92rem; }
  .wrap { padding: 0 10px 36px; margin-top: -34px; }
  .receipt { padding: 26px 16px; }
  .receipt-brand { gap: 10px; margin-bottom: 20px; }
  .receipt-brand .logo-badge { width: 60px; height: 60px; }
  .receipt-org { font-size: 1rem; }
  .receipt-structure { font-size: .78rem; }
  .receipt-num { width: 100%; padding: 12px 14px; }
  .receipt-num strong { font-size: 1.35rem; overflow-wrap: anywhere; }
  .receipt-actions { flex-direction: column; }
  .receipt-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .band, .ruban, .receipt-actions, .side, .mobile-bar, .actions, .foot, .no-print, .nav-scrim { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
  .admin { display: block; }
  .wrap { margin-top: 0; }
  .fiche { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Carte des candidatures par zone (assets/js/carte.js)
   ===================================================================== */
.carte { --carte-vide: #eef1ec; }
.carte-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.carte-entete h2 { margin-bottom: 4px; }
.carte-entete p { margin: 0 0 14px; color: var(--gris); font-size: .9rem; }
.carte-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.carte-onglets { display: inline-flex; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); overflow: hidden; background: var(--champ); }
.carte-onglets button { font: 600 .9rem var(--font); border: 0; background: none; padding: 8px 16px; min-height: 40px; cursor: pointer; color: var(--encre); }
.carte-onglets button + button { border-left: 1.5px solid var(--ligne); }
.carte-onglets button.on { background: var(--vert); color: #fff; }
.carte-onglets button:focus-visible { outline: 3px solid var(--jaune); outline-offset: -3px; }
.carte-fil { display: flex; align-items: center; gap: 10px; color: var(--gris); font-size: .9rem; }
.carte-fil b { color: var(--vert-fonce); }
.carte-corps { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.carte-zone { position: relative; background: linear-gradient(180deg, #f7faf6, #fff); border: 1px solid var(--ligne-2); border-radius: var(--r-sm); padding: 8px; min-height: 200px; }
.carte-zone svg { display: block; width: 100%; height: auto; max-height: 560px; }
.carte-zones path { stroke: #fff; stroke-width: .9px; stroke-linejoin: round; cursor: pointer; transition: opacity .15s; vector-effect: non-scaling-stroke; }
.mode-regions .carte-zones path { stroke-width: 1.6px; }
.mode-communes .carte-zones path { stroke: rgba(255, 255, 255, .75); stroke-width: .5px; }
.carte-zones path:hover, .carte-zones path:focus-visible { opacity: .82; outline: none; stroke: var(--jaune); stroke-width: 2.5px; }
.carte-zones path.sel { stroke: var(--rouge); stroke-width: 3px; }
.carte-limites path { fill: none; pointer-events: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.carte-limites .lim-p { stroke: rgba(5, 63, 11, .45); stroke-width: 1px; }
.carte-limites .lim-r { stroke: var(--vert-fonce); stroke-width: 1.8px; }
.carte-contexte path { fill: #f3f5f0; stroke: #dfe5dc; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.carte-etiquettes text { text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-linejoin: round; font-family: var(--font); }
.carte-etiquettes .et-nom { font-weight: 600; fill: var(--encre); font-size: .8em; }
.carte-etiquettes .et-nb { font-weight: 800; fill: var(--rouge-fonce); }
.carte-bulle { position: absolute; z-index: 5; pointer-events: none; background: var(--vert-fonce); color: #fff; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .85rem; line-height: 1.3; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); max-width: 240px; }
.carte-bulle b { display: block; }
.carte-bulle small { display: block; color: #bfe0bd; }
.carte-bulle span { display: block; color: var(--jaune); font-weight: 700; margin-top: 2px; }
.carte-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 4px 2px; font-size: .8rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.carte-legende .lg-titre { font-weight: 700; color: var(--encre); width: 100%; }
.carte-legende i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -3px; margin-right: 5px; border: 1px solid rgba(0, 0, 0, .08); }
.carte-detail { padding: 14px 16px; background: var(--vert-pale); border-left: 5px solid var(--vert-2); border-radius: var(--r-sm); margin-bottom: 16px; }
.carte-detail .hint { margin: 0; }
.carte-detail h3 { margin: 0; font-size: 1.2rem; color: var(--vert-fonce); }
.cd-niveau { margin: 0 0 2px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vert-2); }
.cd-chemin { margin: 2px 0 0; color: var(--gris); font-size: .86rem; }
.cd-nb { margin: 10px 0 12px; }
.cd-nb b { font-size: 1.7rem; font-weight: 850; color: var(--vert-fonce); font-variant-numeric: tabular-nums; }
.cd-nb span { display: block; color: var(--gris); font-size: .86rem; }
.cd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.carte-classement h3 { font-size: .95rem; margin: 0 0 8px; color: var(--vert-fonce); }
.cc-liste { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; counter-reset: cc; }
.cc-liste button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) 70px 38px; gap: 8px; align-items: center; background: none; border: 0;
  padding: 5px 4px; border-radius: 6px; font: inherit; font-size: .86rem; text-align: left; cursor: pointer; color: inherit; counter-increment: cc; }
.cc-liste button::before { content: counter(cc); color: var(--gris); font-size: .75rem; font-weight: 700; text-align: right; }
.cc-liste button:hover { background: #f5f9f3; }
.cc-liste .cc-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-liste i { display: block; height: 10px; border-radius: 5px; background: var(--vert-2); }
.cc-liste em { font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.carte noscript p { margin: 0; }
@media (max-width: 1000px) { .carte-corps { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .carte-barre { flex-direction: column; align-items: stretch; }
  .carte-onglets { display: flex; }
  .carte-onglets button { flex: 1; padding: 8px 6px; }
  .carte-zone { padding: 4px; }
}
@media print { .carte-onglets, .carte-fil .btn, .cd-actions, .carte-bulle { display: none !important; } .carte-corps { grid-template-columns: 1.6fr 1fr; } }
.filters.filters-carte { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .filters.filters-carte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .filters.filters-carte { grid-template-columns: 1fr 1fr; } .filters.filters-carte .f:first-of-type { grid-column: auto; } }

/* ---------- Récépissé : aide au téléchargement et page « Retrouver mon récépissé » ---------- */
.recu-aide { text-align: left; margin: 20px auto 0; max-width: 560px; font-weight: 400; }
.recu-lien { max-width: 560px; margin: 22px auto 0; text-align: left; border-top: 1px solid var(--ligne-2); padding-top: 14px; }
.recu-copie { display: flex; gap: 8px; margin-top: 8px; }
.recu-copie input { flex: 1; min-width: 0; font-size: .82rem; }
.retrouver { max-width: 560px; margin: 0 auto; }
.retrouver .receipt-brand { justify-content: flex-start; }
.retrouver h1 { color: var(--vert-fonce); margin-bottom: 4px; }
.lien-clair { color: inherit; font-weight: 700; text-decoration: underline; }
/* ---------- Modification de l'inscription par le candidat ---------- */
.recu-modif { max-width: 560px; margin: 18px auto 0; padding: 12px 14px; border: 1px dashed var(--ligne-2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.recu-modif .hint { margin: 0; }
.receipt .alert { text-align: left; }
.onglets-retrouver { display: flex; gap: 6px; margin: 4px 0 16px; border-bottom: 1px solid var(--ligne-2); }
.onglets-retrouver a { padding: 8px 12px; text-decoration: none; color: inherit; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.onglets-retrouver a[aria-current="page"] { color: var(--vert-fonce); border-bottom-color: var(--vert-2); }
@media (max-width: 480px) { .onglets-retrouver a { flex: 1; text-align: center; font-size: .9rem; padding: 8px 4px; } }

/* =====================================================================
   Recrutement WURI : poste souhaité, engagement, documents joints
   ===================================================================== */
.band h1 { max-width: 26ch; }
.h1-sub { display: block; font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--jaune); margin-top: .35em; }
.annonce { border-left: 5px solid var(--jaune); padding: 16px 20px; margin-bottom: 18px; }
.annonce p { margin: 0 0 6px; }
.annonce-nb { color: var(--rouge-fonce); }
.annonce .hint { margin: 0; }
.step-intro { margin: -10px 0 18px; color: var(--gris); font-size: .93rem; max-width: 80ch; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards3 .card-radio small { display: block; margin-top: 4px; line-height: 1.4; }
.cards3:has([aria-invalid="true"]) > .card-radio > span { border-color: var(--rouge); }

.check-card { margin: 0 !important; padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); background: var(--champ); font-size: .95rem !important; }
.check-card:has(input:checked) { border-color: var(--vert); background: var(--vert-pale); }
.check-card:has([aria-invalid="true"]) { border-color: var(--rouge); }

.docs-regle { margin: -6px 0 16px; }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.doc { border: 1.5px dashed var(--ligne); border-radius: var(--r-sm); padding: 12px 14px; background: var(--champ); }
.doc label em { display: block; margin: 2px 0 0; }
.doc input[type=file] { width: 100%; font: inherit; font-size: .9rem; padding: 8px 0; }
.doc input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1.5px solid var(--vert); color: var(--vert-fonce); background: #fff; border-radius: 99px; padding: 7px 14px; margin-right: 10px; cursor: pointer; }
.doc input[type=file][aria-invalid="true"]::file-selector-button { border-color: var(--rouge); color: var(--rouge-fonce); }
.doc-deja { margin: 0 0 4px; font-size: .9rem; color: var(--vert-fonce); font-weight: 600; }
.doc-deja .hint { display: block; font-weight: 400; margin: 2px 0 0; }

.docs-liste { list-style: none; padding: 0; margin: 0; }
.docs-liste li { padding: 6px 0; border-bottom: 1px solid var(--ligne-2); }
.docs-liste .tag { margin-right: 6px; }

.kpis.kpis-postes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.kpi { text-decoration: none; color: inherit; border-top-color: var(--jaune); }
a.kpi:hover { box-shadow: 0 0 0 2px var(--vert-2), var(--ombre); }

@media (max-width: 860px) {
  .cards3, .docs { grid-template-columns: 1fr; }
  .doc { margin-bottom: 12px; }
}
@media (max-width: 640px) { .kpis.kpis-postes { grid-template-columns: 1fr; } }
.band .lead + .lead { margin-top: 8px; }

/* ---------------- Sélection multiple (liste des candidats) ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.masse-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; margin-bottom: 12px;
  background: var(--vert-pale); border: 1px solid var(--ligne); border-radius: var(--r-sm); }
.masse-bar .check-inline { margin: 0; font-weight: 600 !important; }
.masse-compte { color: var(--gris); font-size: .9rem; }
.masse-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.lien-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--vert-2); text-decoration: underline; cursor: pointer; }
.col-sel { width: 36px; text-align: center; }
.col-sel input { width: 18px; height: 18px; accent-color: var(--vert); cursor: pointer; }
tr.is-sel td { background: #fffbea; }
@media (max-width: 760px) {
  .masse-actions { margin-left: 0; width: 100%; }
  .masse-actions .btn { flex: 1; }
  .table-cards td.col-sel { width: auto; text-align: left; }
}

/* ---------------- Plusieurs candidatures d'une même personne ---------------- */
.liste-candidatures { margin: 6px 0 18px; }
.liste-candidatures ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.liste-candidatures .btn { display: grid; justify-items: start; justify-content: start; align-content: start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; height: auto; white-space: normal; }
.liste-candidatures .btn span { font-weight: 500; }
.liste-candidatures .btn small { color: var(--gris); font-weight: 400; }
.docs-reconnus { margin: -4px 0 14px; }
.autres-candidatures li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tag-multi { background: var(--jaune-pale); color: #5e4600; text-decoration: none; }

/* ---------------- Import de listes ---------------- */
.import-envoi { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.import-envoi input[type=file] { flex: 1; min-width: 240px; padding: 10px; border: 1.5px dashed var(--ligne); border-radius: var(--r-sm); background: var(--champ); }
.import-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.import-actions form { margin: 0; }
.kpis.import-kpis { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .kpis.import-kpis { grid-template-columns: 1fr 1fr; } }

/* ---------------- Clôture du recrutement ---------------- */
.annonce-fin { display: flex; gap: 12px; align-items: center; padding: 12px 18px; margin-bottom: 14px; border-radius: var(--r-md);
  background: var(--jaune-pale); border: 1px solid #f1d98a; color: #5e4600; box-shadow: var(--ombre); }
.annonce-fin p { margin: 0; }
.annonce-fin-icone { font-size: 1.5rem; }
[data-compte-rebours].urgent { color: var(--rouge-fonce); font-weight: 700; }
.cloture { text-align: center; padding: 34px 28px; }
.cloture-icone { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.cloture h2 { color: var(--vert-fonce); font-size: 1.6rem; }
.cloture-message { max-width: 62ch; margin: 0 auto 18px; font-size: 1.02rem; line-height: 1.65; color: var(--encre); }
.cloture-liens { margin: 0; }
.cloture .alert { text-align: left; max-width: 62ch; margin: 0 auto 16px; }
.etat-recrutement { border-left: 6px solid var(--vert); }
.etat-recrutement.etat-ferme { border-left-color: var(--rouge); }
.etat-ligne { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.etat-ligne > div:nth-child(2) { flex: 1; min-width: 240px; }
.etat-ligne h2 { margin-bottom: 4px; }
.etat-ligne p { margin: 0 0 4px; }
.etat-pastille { width: 14px; height: 14px; border-radius: 50%; background: var(--vert-2); box-shadow: 0 0 0 4px var(--vert-pale); flex: none; margin-top: 6px; }
.etat-ferme .etat-pastille { background: var(--rouge); box-shadow: 0 0 0 4px var(--rouge-pale); }
.etat-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.etat-actions form { margin: 0; }
.raccourcis { display: flex; gap: 14px; flex-wrap: wrap; margin: -6px 0 14px; }
.apercu-cloture { background: var(--fond); border-radius: var(--r-md); padding: 18px; }
.apercu-cloture .panel { margin: 0 auto; max-width: 760px; }
.bandeau-recrutement { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-md);
  background: var(--papier); box-shadow: var(--ombre); text-decoration: none; color: inherit; border-left: 6px solid var(--vert); }
.bandeau-recrutement.etat-ferme { border-left-color: var(--rouge); }
.bandeau-recrutement .etat-pastille { margin-top: 0; }
.bandeau-lien { margin-left: auto; font-weight: 700; color: var(--vert-2); }

/* ---------------- Réouverture ciblée ---------------- */
.etat-recrutement.etat-partiel, .bandeau-recrutement.etat-partiel { border-left-color: var(--jaune); }
.etat-partiel .etat-pastille { background: var(--jaune); box-shadow: 0 0 0 4px var(--jaune-pale); }
.annonce-partielle { background: #eef6ff; border-color: #b9d3f0; color: #1f3d63; }
.reouv-groupe { margin: 0 0 14px; }
.reouv-groupe .lbl { display: block; font-weight: 700; margin-bottom: 6px; }
.reouv-groupe .chips .chip span { padding: 6px 12px; font-size: .88rem; }
.reouv-outils { display: flex; gap: 14px; margin: 0 0 8px; }

/* ---------- Volontaires de réciprocité AES : cartes des missions, conditions, calendrier ---------- */
.mission-pays { margin-top: 6px; }
.cards-missions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.cards-missions .card-radio small { display: block; margin-top: 5px; line-height: 1.45; }
.cards-missions .card-radio small b { color: var(--encre, #1d2b22); font-weight: 600; }
.cards-missions .mission-lieu { color: var(--vert); font-weight: 600; }
.cards-missions .mission-taches { font-size: .86rem; }
.cards-missions:has([aria-invalid="true"]) > .card-radio > span { border-color: var(--rouge); }
.conditions { display: grid; gap: 8px; }
.calendrier { margin: 10px 0; }
.calendrier summary { cursor: pointer; font-weight: 600; }
.calendrier ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
@media (max-width: 760px) { .cards-missions { grid-template-columns: 1fr; } }

/* ---------- 130 volontaires nationaux (JICA) : missions par intitulé et région ---------- */
.cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mission-bloc { border: 1px solid var(--ligne); border-radius: var(--r-sm); padding: 12px 14px 14px; margin: 0 0 12px; background: #fff; }
.mission-bloc.is-choisie { border-color: var(--vert); box-shadow: 0 0 0 2px var(--vert-pale); }
.mission-bloc .mission-titre { margin: 0 0 2px; }
.mission-meta { margin: 0 0 6px; color: var(--gris); font-size: .9rem; }
.mission-details { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; }
.mission-details summary { cursor: pointer; font-weight: 600; color: var(--vert); }
.mission-details p { margin: 6px 0 0; }
.cards-regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cards-regions .card-radio > span { padding: 10px 10px 10px 38px; }
.cards-regions .card-radio > span::before { left: 12px; top: 13px; }
.cards-regions .card-radio strong { font-size: .98rem; }
.cards-regions .card-radio small { display: block; margin-top: 2px; }
.cards-regions .votre-region { color: var(--vert); font-weight: 600; }
.cards-regions:has([aria-invalid="true"]) > .card-radio > span { border-color: var(--rouge); }
.bloc-criteres .conditions { margin-top: 6px; }
.kpis-detail { margin: 0 0 18px; }
.kpis-detail summary { cursor: pointer; font-weight: 600; }
.kpis-detail .kpis { margin: 12px 0 0; }
@media (max-width: 760px) {
  .cards-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
