/* Coquille commune du module recrutement (phase interfaces, Lot A/B). */
:root {
  --teal-700: #027373; --teal-500: #038C7F; --teal-400: #2FA394;
  --sidebar: #08211E; --ink: #0C2E2B; --body-c: #24403C; --muted: #5C726E; --faint: #8AA0A0; --pale: #9AABA9;
  --line: #E3EAEC; --carte-bord: #E7EDEE; --line-soft: #EEF2F3; --line-faint: #F4F7F7; --page: #F6F8F9;
  --font-title: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--body-c); background: var(--page); }
a { color: var(--teal-500); text-decoration: none; }
button { font-family: inherit; }
.layout { display: flex; min-height: 100vh; position: relative; }
.flex1 { flex: 1; }

/* Sidebar */
.side { width: 228px; flex: none; background: var(--sidebar); display: flex; flex-direction: column; padding: 14px 12px; }
.side .retour { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 10px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12); color: #9FBDB6; font-size: 12px; font-weight: 600; transition: background .12s, color .12s; }
.side .retour:hover { background: rgba(255,255,255,.06); color: #fff; }
.side .marque { padding: 2px 8px 18px; }
.side .marque img { height: 27px; display: block; margin-left: -2px; }
.side .marque .module { margin-top: 8px; font-size: 9.5px; letter-spacing: .16em; color: #5F827B; font-weight: 600; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .cap { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: #5F827B; padding: 12px 10px 5px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; font-size: 13px;
  font-weight: 500; color: #9FBDB6; transition: background .12s, color .12s; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.actif { background: rgba(3,140,127,.20); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--teal-400); }
.side nav a svg { flex: none; opacity: .9; }
.side nav a .lbl { flex: 1; }
.side nav a .cpt { font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.10); color: #C9DAD5; padding: 1px 6px; border-radius: 99px; }
.side nav a .cpt.ambre { background: rgba(232,160,75,.22); color: #E8A04B; }
.side .pied { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.side .etat { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; font-size: 11.5px; color: #9FBDB6; }
.side .etat:first-child { background: rgba(255,255,255,.05); }
.side .etat .pt { width: 7px; height: 7px; border-radius: 99px; background: var(--teal-400); flex: none; }
.side .etat .fin { color: #5F827B; }

/* En-tete de page */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
header.barre { height: 54px; flex: none; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.fil { font-size: 12.5px; color: var(--faint); }
.fil b { font-weight: 600; color: var(--ink); }
.sep-v { width: 1px; height: 22px; background: var(--line); }
.profil { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.profil:hover { background: #EFF4F4; }
.profil .avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--teal-700); color: #fff; font-size: 11px;
  font-weight: 600; display: flex; align-items: center; justify-content: center; }
.profil .id { display: flex; flex-direction: column; line-height: 1.25; }
.profil .id .nm { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.profil .id .rl { font-size: 10.5px; color: var(--faint); }

/* Contenu */
.contenu { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.entete { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.entete .titres { flex: 1; min-width: 260px; }
.entete h1 { margin: 0; font-family: var(--font-title); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.entete .sous { margin-top: 4px; font-size: 13px; color: var(--muted); }
.carte { background: #fff; border: 1px solid var(--carte-bord); border-radius: 12px; box-shadow: 0 1px 2px rgba(12,46,43,.04); }
.cap-bloc { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--pale); text-transform: uppercase; }

/* Boutons */
.btn-blanc { height: 34px; padding: 0 13px; border: 1px solid #D9E2E4; background: #fff; color: #42565A;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-blanc:hover { background: #EFF4F4; }
.btn-contour-t { height: 34px; padding: 0 13px; border: 1px solid var(--teal-700); background: #fff; color: var(--teal-700);
  border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-contour-t:hover { background: #EAFAF5; }
.btn-teal { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: none; background: var(--teal-700);
  color: #fff; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .12s; }
.btn-teal:hover { background: var(--teal-500); }
.btn-mini-c { height: 27px; padding: 0 10px; border: 1px solid var(--teal-700); background: #fff; color: var(--teal-700);
  border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; }
.btn-mini-c:hover { background: #EAFAF5; }
.btn-mini-b { height: 27px; padding: 0 10px; border: 1px solid #D9E2E4; background: #fff; color: #42565A;
  border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; }
.btn-mini-b:hover { background: #EFF4F4; }

/* Tables et filtres */
.tableau { background: #fff; border: 1px solid var(--carte-bord); border-radius: 12px; box-shadow: 0 1px 2px rgba(12,46,43,.04); overflow: hidden; }
.chips-l { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-l button { display: flex; align-items: center; gap: 6px; height: 29px; padding: 0 11px; border: 1px solid #D9E2E4;
  background: #fff; color: #42565A; border-radius: 99px; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background .12s; }
.chips-l button span { opacity: .65; }
.chips-l button.actif { border-color: var(--ink); background: var(--ink); color: #fff; }
.champ-r { display: flex; align-items: center; gap: 8px; height: 34px; border: 1px solid #D9E2E4;
  border-radius: 8px; padding: 0 11px; background: #FBFDFD; }
.champ-r input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 12.5px; color: var(--ink); font-family: inherit; }
.th-l { padding: 8px 18px; background: #F9FBFB; font-size: 10px; font-weight: 600; letter-spacing: .05em; color: var(--faint); text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.ini-r { border-radius: 99px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.pied-t { padding: 10px 18px; border-top: 1px solid #F0F4F4; font-size: 11px; line-height: 1.6; color: var(--faint); }
select.filtre { height: 32px; border: 1px solid #D9E2E4; border-radius: 8px; background: #fff; font-size: 12px;
  color: var(--body-c); padding: 0 9px; font-family: inherit; }

/* KPI simples */
.kpi-simple { flex: 1; background: #fff; border: 1px solid var(--carte-bord); border-radius: 12px; padding: 13px 16px;
  box-shadow: 0 1px 2px rgba(12,46,43,.04); }
.kpi-simple .l { font-size: 11.5px; color: var(--muted); }
.kpi-simple .v { font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--ink); margin-top: 4px; }
.kpi-simple .d { font-size: 10.5px; color: var(--faint); margin-top: 2px; }

/* Modales */
.voile { position: fixed; inset: 0; background: rgba(8,33,30,.45); z-index: 40; display: none; align-items: flex-start; justify-content: center; animation: fondu .15s ease; }
.voile.ouvert { display: flex; }
.modale { margin-top: 88px; background: #fff; border-radius: 12px; box-shadow: 0 24px 64px rgba(8,33,30,.4); overflow: hidden; max-width: 92%; }
.modale .titre-m { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.modale .titre-m b { font-size: 14px; font-weight: 600; color: var(--ink); }
.modale .fermer-m { width: 28px; height: 28px; border: none; background: transparent; border-radius: 7px; display: flex;
  align-items: center; justify-content: center; color: var(--faint); cursor: pointer; margin-left: auto; }
.modale .fermer-m:hover { background: #EFF4F4; color: #42565A; }
.modale label.champ { display: flex; flex-direction: column; gap: 5px; }
.modale label.champ .l { font-size: 11.5px; font-weight: 600; color: #42565A; }
.modale select, .modale textarea { border: 1px solid #D9E2E4; border-radius: 7px; background: #fff;
  font-size: 12.5px; color: var(--body-c); font-family: inherit; outline: none; }
.modale select { height: 34px; padding: 0 9px; }
.modale textarea { padding: 8px 10px; resize: vertical; line-height: 1.55; }
.modale textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(47,163,148,.15); }
.modale .info-verte { background: #EAFAF5; border-radius: 8px; padding: 9px 12px; font-size: 11px; line-height: 1.55; color: #026060; }
.modale .actions-m { display: flex; justify-content: flex-end; gap: 8px; }
.btn-annuler { height: 33px; padding: 0 13px; border: none; background: transparent; color: var(--faint); border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-annuler:hover { background: #EFF4F4; }
.btn-valider { height: 33px; padding: 0 15px; border: none; background: var(--teal-700); color: #fff; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-valider:hover { background: var(--teal-500); }
.chip-opt { height: 29px; padding: 0 13px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .12s; border: 1px solid #D9E2E4; background: #fff; color: #42565A; display: inline-flex; align-items: center; }
.chip-opt.on { border-color: var(--teal-700); background: var(--teal-700); color: #fff; }
.case-c { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--body-c); cursor: pointer; }
.case-c input { width: 15px; height: 15px; accent-color: var(--teal-700); }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 0); background: var(--ink); color: #fff;
  font-size: 13px; padding: 11px 16px; border-radius: 8px; display: none; gap: 9px; align-items: center;
  box-shadow: 0 8px 24px rgba(12,46,43,.35); z-index: 50; max-width: 680px; animation: toastIn .25s ease; }
.toast.visible { display: flex; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media (max-width: 900px) { .side { display: none; } .fil { display: none; } }
