/* Salariés : répertoire et dossier (repertoire.js, 23/11/2026) */
.app-salaries { display: block; min-height: calc(100vh - 48px); background: var(--bg, #F2F3FC); color: var(--ink, #0C0E3D); font-family: 'Public Sans', system-ui, sans-serif; }
.app-salaries[hidden] { display: none; }
.rp-app { --rp-blue: #0009E4; --rp-line: var(--line, #D3D5F0); --rp-muted: var(--muted, #4A4E7D); --rp-accent: var(--accent, #0009E4); --rp-surface: var(--surface, #fff); --rp-ok: #15803D; --rp-warn: #8A5300; --rp-crit: #B3261E; }
.rp-app [hidden] { display: none !important; }
.rp-band { background: var(--rp-blue); color: #fff; }
.rp-band-in { max-width: 1240px; margin: 0 auto; padding: 18px 20px 20px; }
.rp-band-t { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.rp-band h1 { font-family: 'Exo 2', 'Public Sans', sans-serif; font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.rp-band p { margin: 3px 0 0; color: #D0D1FB; font-size: 13.5px; }
.rp-cherche { position: relative; margin-top: 16px; max-width: 720px; }
.rp-cherche svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #4A4E7D; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.rp-cherche input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 13px 16px 13px 44px; border: 0; border-radius: 12px; background: #fff; color: #0C0E3D; box-shadow: 0 4px 18px rgba(0, 0, 40, .18); }
.rp-cherche input:focus { outline: 3px solid #9A9DFF; outline-offset: 2px; }
.rp-main { max-width: 1240px; margin: 0 auto; padding: 18px 20px 40px; display: grid; gap: 16px; }
.rp-btn { font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--rp-line); background: var(--rp-surface); color: inherit; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.rp-btn.clair { background: #fff; color: var(--rp-blue); border: 0; }
.rp-mini { font: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid var(--rp-line); background: var(--rp-surface); color: var(--rp-accent); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.rp-mini:disabled { opacity: .5; cursor: default; }
.rp-msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft, #DFDCFB); font-size: 14px; }
.rp-msg.err { background: #FBE3E0; color: var(--rp-crit); }
.rp-vide { margin: 0; padding: 28px 8px; text-align: center; color: var(--rp-muted); font-size: 14px; }
.rp-vide.p { padding: 10px 0; text-align: left; }
.rp-note { margin: 0 0 8px; font-size: 13px; color: var(--rp-muted); }
.rp-nr { color: var(--rp-muted); font-style: italic; font-weight: 400; }

/* barre de filtres */
.rp-barre { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.rp-seg { display: inline-flex; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 10px; padding: 3px; gap: 2px; }
.rp-seg button { font: inherit; font-size: 13.5px; font-weight: 600; border: 0; background: none; color: var(--rp-muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.rp-seg button span { font-weight: 500; opacity: .75; margin-left: 2px; }
.rp-seg button[aria-pressed="true"] { background: var(--rp-accent); color: var(--on-accent, #fff); }
.rp-seg.vue { margin-left: auto; }
.rp-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--rp-muted); }
.rp-sel select { font: inherit; font-size: 13.5px; font-weight: 500; padding: 6px 8px; border: 1px solid var(--rp-line); border-radius: 8px; background: var(--rp-surface); color: var(--ink, #0C0E3D); max-width: 220px; }
.rp-compte { font-size: 13.5px; color: var(--rp-muted); }

/* cartes du répertoire */
.rp-lettre { margin: 10px 0 8px; font-family: 'Exo 2', 'Public Sans', sans-serif; font-size: 15px; color: var(--rp-muted); border-bottom: 1px solid var(--rp-line); padding-bottom: 4px; }
.rp-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rp-carte { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.rp-carte:hover { border-color: var(--rp-accent); box-shadow: 0 4px 16px rgba(0, 9, 228, .10); }
.rp-carte:focus-visible { outline: 3px solid var(--rp-accent); outline-offset: 2px; }
.rp-carte.sorti { opacity: .72; }
.rp-carte.rp-sq { height: 74px; background: linear-gradient(90deg, var(--rp-surface), var(--sunken, #E5E6F8), var(--rp-surface)); background-size: 200% 100%; animation: rp-sq 1.2s linear infinite; }
@keyframes rp-sq { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rp-carte.rp-sq { animation: none; } .rp-carte { transition: none; } }
.rp-cid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-cid b { font-size: 15px; overflow-wrap: anywhere; }
.rp-cid > span:not(.rp-puces) { font-size: 13.5px; color: var(--ink, #0C0E3D); }
.rp-cid small { font-size: 12.5px; color: var(--rp-muted); }
.rp-puces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rp-puce { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sunken, #E5E6F8); color: var(--ink, #0C0E3D); white-space: nowrap; }
.rp-puce.ok { background: #DCF5E3; color: var(--rp-ok); }
.rp-puce.venir { background: #FFF1D6; color: var(--rp-warn); }
.rp-puce.sorti { background: #FBE3E0; color: var(--rp-crit); }
.rp-puce.ctr { background: var(--accent-soft, #DFDCFB); color: var(--rp-accent); }
.rp-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.rp-av.p { width: 32px; height: 32px; font-size: 12.5px; }
.rp-av.g { width: 84px; height: 84px; font-size: 28px; border: 3px solid rgba(255, 255, 255, .85); }

/* tableau */
.rp-tw { overflow-x: auto; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 12px; }
.rp-carte-d .rp-tw { border-radius: 8px; }
.rp-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rp-t th { text-align: left; font-size: 12px; font-weight: 700; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .03em; padding: 9px 12px; border-bottom: 1px solid var(--rp-line); background: var(--sunken, #E5E6F8); white-space: nowrap; }
.rp-t td { padding: 9px 12px; border-bottom: 1px solid var(--rp-line); vertical-align: top; }
.rp-t tr:last-child td { border-bottom: 0; }
.rp-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.rp-t small { display: block; font-size: 12px; color: var(--rp-muted); }
.rp-t a { color: var(--rp-accent); }
.rp-tn { display: flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none; }
.rp-tn:hover b { text-decoration: underline; }

/* dossier */
.rp-band.fiche .rp-band-in { padding-bottom: 18px; }
.rp-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.rp-retour { color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.rp-retour:hover { text-decoration: underline; }
.rp-pn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #D0D1FB; }
.rp-pn a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-size: 20px; line-height: 1; }
.rp-pn a:hover { background: rgba(255, 255, 255, .26); }
.rp-pn a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.rp-ident { display: flex; gap: 18px; align-items: center; }
.rp-ident h1 { font-size: 26px; }
.rp-poste { margin: 4px 0 0 !important; color: #fff !important; font-size: 15px !important; }
.rp-band .rp-puce { background: rgba(255, 255, 255, .16); color: #fff; }
.rp-band .rp-puce.sorti { background: #FBE3E0; color: var(--rp-crit); }
.rp-band .rp-puce.venir { background: #FFF1D6; color: var(--rp-warn); }
.rp-band .rp-puces { margin-top: 8px; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.rp-meta div { display: flex; flex-direction: column; gap: 2px; }
.rp-meta span { font-size: 12px; color: #D0D1FB; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.rp-meta b { font-size: 14.5px; font-weight: 600; }
.rp-meta a { color: #fff; }
.rp-onglets { position: sticky; top: var(--nav-h, 48px); z-index: 5; background: var(--rp-surface); border-bottom: 1px solid var(--rp-line); }
.rp-onglets-in { max-width: 1240px; margin: 0 auto; padding: 0 12px; display: flex; overflow-x: auto; scrollbar-width: none; }
.rp-onglets button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--rp-muted); padding: 13px 14px 11px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.rp-onglets button span { font-size: 11.5px; background: var(--sunken, #E5E6F8); color: var(--rp-muted); border-radius: 999px; padding: 1px 7px; margin-left: 3px; }
.rp-onglets button:hover { color: var(--ink, #0C0E3D); }
.rp-onglets button[aria-selected="true"] { color: var(--rp-accent); border-bottom-color: var(--rp-accent); }
.rp-onglets button:focus-visible { outline: 3px solid var(--rp-accent); outline-offset: -3px; }
.rp-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.rp-carte-d { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 12px; padding: 14px 18px 16px; min-width: 0; }
.rp-cd-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rp-cd-h h2 { margin: 0; font-size: 16px; }
.rp-h3 { margin: 14px 0 6px; font-size: 14px; }
.rp-lien { font-size: 13px; font-weight: 600; color: var(--rp-accent); text-decoration: none; white-space: nowrap; }
.rp-lien:hover { text-decoration: underline; }
.rp-carte-d dl { margin: 0; }
.rp-l { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rp-line); font-size: 14px; }
.rp-l:last-child { border-bottom: 0; }
.rp-l dt { color: var(--rp-muted); font-size: 13px; }
.rp-l dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.rp-l dd small { color: var(--rp-muted); font-weight: 400; }
.rp-l a { color: var(--rp-accent); }
.rp-nir { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rp-kpis div { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rp-kpis b { font-family: 'Exo 2', 'Public Sans', sans-serif; font-size: 24px; line-height: 1.1; }
.rp-kpis span { font-size: 13px; color: var(--rp-muted); }
.rp-kpis .todo { border-color: var(--rp-warn); }
.rp-carte-d .rp-sel { margin-bottom: 10px; }

@media (max-width: 700px) {
  .rp-band-in, .rp-main { padding-left: 16px; padding-right: 16px; }
  .rp-seg.vue { margin-left: 0; }
  .rp-ident { align-items: flex-start; }
  .rp-av.g { width: 60px; height: 60px; font-size: 20px; }
  .rp-ident h1 { font-size: 21px; }
  .rp-grille { grid-template-columns: 1fr; }
  .rp-l { grid-template-columns: 1fr; gap: 2px; }
  .rp-cartes { grid-template-columns: 1fr; }
}

/* modification sur place (24/11/2026) */
.rp-ident { justify-content: flex-start; }
.rp-ident-t { flex: 1; min-width: 0; }
.rp-btn.petit { padding: 7px 12px; font-size: 13px; align-self: flex-start; }
.rp-btn.accent { background: var(--rp-accent); border-color: var(--rp-accent); color: var(--on-accent, #fff); }
.rp-btn.danger { background: var(--rp-surface); border-color: var(--rp-crit); color: var(--rp-crit); }
.rp-btn:disabled { opacity: .55; cursor: default; }
.rp-mod { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--rp-accent); background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 9px; cursor: pointer; white-space: nowrap; }
.rp-mod:hover { background: var(--accent-soft, #DFDCFB); }
.rp-mod:focus-visible, .rp-mini:focus-visible, .rp-btn:focus-visible { outline: 3px solid var(--rp-accent); outline-offset: 2px; }
.rp-mod svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-carte-d.edit { border-color: var(--rp-accent); box-shadow: 0 0 0 3px var(--accent-soft, #DFDCFB); }
.rp-form { margin: 4px 0 6px; }
.rp-fg { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.rp-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--rp-muted); min-width: 0; }
.rp-f.large, .rp-note.large { grid-column: 1 / -1; }
.rp-f input, .rp-f select, .rp-f textarea, .rp-site input { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink, #0C0E3D); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 8px; padding: 8px 10px; min-width: 0; width: 100%; box-sizing: border-box; }
.rp-f textarea { resize: vertical; min-height: 60px; }
.rp-f input:focus, .rp-f select:focus, .rp-f textarea:focus, .rp-site input:focus { outline: 2px solid var(--rp-accent); outline-offset: 0; border-color: var(--rp-accent); }
.rp-form-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rp-line); }
.rp-form-a .rp-btn.danger { margin-right: auto; }
.rp-ko { color: var(--rp-crit); font-size: 13px; font-weight: 600; }
.rp-ko:empty { display: none; }
.rp-aide { font-size: 12px; color: var(--rp-muted); margin-right: 4px; }
.rp-sites { display: grid; gap: 8px; }
.rp-site { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rp-sites > .rp-mini { justify-self: start; }
.rp-t tr.rp-sel td { background: var(--accent-soft, #DFDCFB); }
.rp-carte-d .rp-form + .rp-sel, .rp-carte-d .rp-form + .rp-tw, .rp-carte-d .rp-form + .rp-vide { margin-top: 12px; }
.rp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #0C0E3D; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }
.rp-toast.err { background: var(--rp-crit); }
@media (max-width: 700px) { .rp-site { grid-template-columns: 1fr; } .rp-aide { display: none; } }.rp-grille .rp-carte-d.edit { grid-column: 1 / -1; }
.rp-band-b { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-imp .rp-cd-h { margin-bottom: 4px; }
.rp-impf { margin: 6px 0 12px; flex-wrap: wrap; }
.rp-impt { max-height: 60vh; overflow: auto; }
.rp-chg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.rp-av-v { text-decoration: line-through; color: var(--rp-muted); }
.rp-ap-v { font-weight: 600; }
.rp-force { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--rp-accent); cursor: pointer; }
.rp-force input { accent-color: var(--rp-accent); }.rp-act { position: relative; }
.rp-actm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 270px; background: var(--rp-surface); color: var(--ink, #0C0E3D); border: 1px solid var(--rp-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(12, 14, 61, .22); padding: 6px; display: grid; gap: 2px; }
.rp-actm button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; border: 0; background: none; color: inherit; padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.rp-actm button:hover, .rp-actm button:focus-visible { background: var(--accent-soft, #DFDCFB); outline: none; }
.rp-actm b { font-size: 14px; }
.rp-actm small { font-size: 12.5px; color: var(--rp-muted); }.rp-force.tout { display: flex; margin: 0 0 10px; padding: 8px 12px; background: var(--accent-soft, #DFDCFB); border-radius: 8px; font-size: 13.5px; }
