/* =============================================================================
   ATS DHL Careers — feuille de style unique (portail public + back-office RH)

   Parti pris : le vocabulaire visuel du transport. Références en chiffres
   monospacés comme sur un bordereau, cartes d'offre construites comme des
   étiquettes d'expédition, suivi de candidature en barre segmentée.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --jaune: #FFCC00;
  --jaune-clair: #FFE066;
  --jaune-fonce: #E0B400;
  --rouge: #D40511;
  --rouge-fonce: #A50410;

  /* Neutres */
  --encre: #14181F;
  --encre-2: #1E242E;
  --encre-3: #2B3341;
  --ardoise: #56616F;
  --ardoise-clair: #8B93A0;
  --papier: #F5F4F1;
  --blanc: #FFFFFF;
  --ligne: #E3E1DB;
  --ligne-forte: #C8C5BC;

  /* Sémantique */
  --vert: #15803D;      --vert-fond: #E7F5EC;
  --ambre: #B45309;     --ambre-fond: #FDF3E3;
  --alerte: #C0261F;    --alerte-fond: #FBEAE9;
  --info: #1D4ED8;      --info-fond: #E8EEFD;

  /* Typographie */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --rayon: 3px;
  --ombre: 0 1px 2px rgba(20, 24, 31, .06), 0 4px 14px rgba(20, 24, 31, .05);
  --ombre-forte: 0 2px 6px rgba(20, 24, 31, .10), 0 18px 40px rgba(20, 24, 31, .10);
  --largeur: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Face utilitaire : tout ce qui relève de la donnée et de l'étiquetage. */
.mono, .ref, .eyebrow, .chip, .badge, .stat-valeur, th, .kpi-valeur {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ardoise);
  font-weight: 600;
}
.ref { font-size: 12.5px; letter-spacing: .04em; color: var(--ardoise); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(21px, 2.6vw, 29px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
h4 { font-size: 15px; letter-spacing: 0; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 2px;
  border-radius: 2px;
}
.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 10px 16px;
}
.saut-contenu:focus { left: 8px; top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 760px; }

/* ---------------------------------------------------------------- Marque -- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mot {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -.045em;
  color: var(--rouge);
  line-height: 1;
}
.logo-slash { display: flex; gap: 3px; align-items: center; }
.logo-slash i {
  display: block; width: 15px; height: 3px; background: var(--rouge);
  transform: skewX(-28deg);
}
.logo-slash i:nth-child(2) { width: 11px; opacity: .75; }
.logo-slash i:nth-child(3) { width: 7px; opacity: .5; }
.logo-suffixe {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--encre); padding-left: 10px; margin-left: 4px;
  border-left: 1px solid rgba(20, 24, 31, .25);
}

/* -------------------------------------------------------- En-tête public -- */
.bandeau-demo {
  background: var(--encre);
  color: #C7CCD4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-align: center;
  padding: 6px 16px;
}
.bandeau-demo strong { color: var(--jaune); font-weight: 600; }

.entete {
  background: var(--jaune);
  border-bottom: 3px solid var(--rouge);
  position: sticky; top: 0; z-index: 40;
}
.entete-inner {
  max-width: var(--largeur); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-public { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-public a {
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: var(--rayon); color: var(--encre);
}
.nav-public a:hover { background: rgba(20, 24, 31, .09); }
.nav-public a.actif { background: var(--encre); color: var(--jaune); }

/* ------------------------------------------------------------- Héros ----- */
.heros {
  background: var(--jaune);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--rouge);
}
/* Les trois obliques reprennent le motif de vitesse de la marque. */
.heros::after {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 46%;
  background:
    repeating-linear-gradient(105deg,
      var(--rouge) 0 26px, transparent 26px 64px);
  opacity: .11;
  pointer-events: none;
}
.heros-inner {
  max-width: var(--largeur); margin: 0 auto; padding: 60px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  gap: 48px; align-items: end; position: relative; z-index: 1;
}
.heros h1 { text-transform: uppercase; margin-bottom: 14px; max-width: 12ch; }
.heros .accroche { font-size: 17px; max-width: 46ch; color: var(--encre-2); margin-bottom: 26px; }

.recherche {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--blanc); padding: 8px; border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
}
.recherche input {
  flex: 1 1 220px; border: 0; padding: 12px 14px; font-size: 15px;
  font-family: var(--sans); background: transparent; color: var(--encre);
}
.recherche input:focus { outline: none; }
.recherche:focus-within { box-shadow: var(--ombre-forte), 0 0 0 3px var(--encre); }

/* Panneau de chiffres : présenté comme un manifeste de chargement. */
.manifeste {
  background: var(--encre); color: var(--blanc); padding: 22px 24px;
  border-radius: var(--rayon); box-shadow: var(--ombre-forte);
}
.manifeste .eyebrow { color: var(--jaune); margin-bottom: 14px; display: block; }
.manifeste dl { margin: 0; display: grid; gap: 2px; }
.manifeste div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.manifeste div:last-child { border-bottom: 0; }
.manifeste dt { font-size: 13px; color: #B9C0CA; }
.manifeste dd {
  margin: 0; font-family: var(--mono); font-size: 22px; font-weight: 600;
  color: var(--jaune); font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: var(--rayon); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
  line-height: 1.2;
}
.btn-primaire { background: var(--rouge); color: var(--blanc); }
.btn-primaire:hover { background: var(--rouge-fonce); }
.btn-encre { background: var(--encre); color: var(--jaune); }
.btn-encre:hover { background: var(--encre-3); }
.btn-jaune { background: var(--jaune); color: var(--encre); }
.btn-jaune:hover { background: var(--jaune-fonce); }
.btn-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-contour:hover { background: var(--encre); color: var(--jaune); }
.btn-fantome {
  border-color: var(--ligne-forte); color: var(--encre); background: var(--blanc);
}
.btn-fantome:hover { border-color: var(--encre); }
.btn-danger { background: var(--blanc); border-color: var(--alerte); color: var(--alerte); }
.btn-danger:hover { background: var(--alerte); color: var(--blanc); }
.btn-petit { padding: 7px 13px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* -------------------------------------------------------------- Section -- */
.section { padding: 56px 0; }
.section-titre {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.section-titre h2 { margin: 0; }
.lien-fleche {
  font-weight: 700; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid var(--jaune); padding-bottom: 2px;
}
.lien-fleche:hover { border-color: var(--rouge); }

/* ------------------------------------------------- Carte offre (étiquette) */
.grille-offres { display: grid; gap: 16px; }
@media (min-width: 780px) { .grille-offres { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grille-offres.trois { grid-template-columns: repeat(3, 1fr); } }

.offre-carte {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-left: 4px solid var(--jaune);
  border-radius: var(--rayon); padding: 18px 20px 16px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .12s, box-shadow .12s, transform .12s;
  position: relative;
}
.offre-carte:hover {
  border-left-color: var(--rouge); box-shadow: var(--ombre); transform: translateY(-2px);
}
.offre-entete {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 9px; border-bottom: 1px dashed var(--ligne-forte);
}
.offre-carte h3 { margin: 0; font-size: 17.5px; }
.offre-resume { color: var(--ardoise); font-size: 14px; margin: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.chip {
  font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--papier); border: 1px solid var(--ligne);
  padding: 4px 8px; border-radius: 2px; color: var(--ardoise); white-space: nowrap;
}
.chip-jaune { background: #FFF6D1; border-color: #F0DC8A; color: #7A5B00; }
.chip-rouge { background: var(--alerte-fond); border-color: #EFC5C2; color: var(--alerte); }
.chip-vert { background: var(--vert-fond); border-color: #BFE3CD; color: var(--vert); }
.chip-encre { background: var(--encre); border-color: var(--encre); color: var(--jaune); }

.marqueur-urgent {
  position: absolute; top: 0; right: 0;
  background: var(--rouge); color: var(--blanc);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  padding: 3px 9px; text-transform: uppercase;
  border-bottom-left-radius: var(--rayon);
}

/* ------------------------------------------------------------- Familles -- */
.grille-familles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.famille-carte {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 18px; text-decoration: none; display: block;
  border-top: 3px solid var(--encre); transition: border-top-color .12s, box-shadow .12s;
}
.famille-carte:hover { border-top-color: var(--rouge); box-shadow: var(--ombre); }
.famille-carte .icone { font-size: 26px; line-height: 1; display: block; margin-bottom: 10px; }
.famille-carte strong { display: block; font-size: 15px; }
.famille-carte span { font-family: var(--mono); font-size: 12px; color: var(--ardoise); }

/* ------------------------------------------------------------ Formulaires */
.champ { margin-bottom: 18px; }
.champ > label, .label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--encre);
}
.champ .aide { display: block; font-size: 12.5px; color: var(--ardoise); margin-top: 5px; }
.requis { color: var(--rouge); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; padding: 10px 12px; font-size: 14.5px; font-family: var(--sans);
  color: var(--encre); background: var(--blanc);
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(255, 204, 0, .5);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--ardoise) 50%),
  linear-gradient(135deg, var(--ardoise) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

input[type="file"] {
  width: 100%; padding: 14px; border: 2px dashed var(--ligne-forte);
  border-radius: var(--rayon); background: var(--papier); font-size: 14px;
}
input[type="file"]:focus { border-color: var(--encre); outline: none; }

.grille-champs { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille-champs.deux { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grille-champs.trois { grid-template-columns: repeat(3, 1fr); } }

.case {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: var(--blanc);
}
.case input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--rouge); }
.case label { font-size: 13.5px; color: var(--ardoise); font-weight: 400; }
.case label strong { color: var(--encre); }

.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--ligne-forte); border-radius: var(--rayon);
  background: var(--blanc); font-size: 14px; font-weight: 600;
}
.radios input { accent-color: var(--rouge); }
.radios label:has(input:checked) { border-color: var(--encre); background: var(--jaune); }

/* -------------------------------------------------------------- Panneaux -- */
.panneau {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 22px;
}
.panneau + .panneau { margin-top: 16px; }
.panneau-titre {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ligne);
}
.panneau-titre h2, .panneau-titre h3 { margin: 0; }

.encart {
  border-left: 3px solid var(--jaune); background: var(--blanc);
  padding: 14px 16px; border-radius: 0 var(--rayon) var(--rayon) 0;
  border-top: 1px solid var(--ligne); border-right: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
}

.alerte {
  padding: 12px 16px; border-radius: var(--rayon); font-size: 14px;
  border: 1px solid; margin-bottom: 18px;
}
.alerte-succes { background: var(--vert-fond); border-color: #BFE3CD; color: #10552A; }
.alerte-erreur { background: var(--alerte-fond); border-color: #EFC5C2; color: #8A1A15; }
.alerte-info   { background: var(--info-fond); border-color: #C6D4F8; color: #16357F; }

/* --------------------------------------- Signature : suivi d'expédition --- */
.suivi-piste {
  display: grid; gap: 0; margin: 26px 0 8px;
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.suivi-etape { position: relative; padding-top: 30px; text-align: center; }
.suivi-etape::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 6px;
  background: var(--ligne);
}
.suivi-etape:first-child::before { border-radius: 3px 0 0 3px; }
.suivi-etape:last-child::before { border-radius: 0 3px 3px 0; }
.suivi-etape.faite::before { background: var(--jaune); }
.suivi-etape.courante::before { background: var(--rouge); }
.suivi-etape::after {
  content: ""; position: absolute; top: 3px; left: 50%; margin-left: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blanc); border: 3px solid var(--ligne);
}
.suivi-etape.faite::after { border-color: var(--jaune-fonce); background: var(--jaune); }
.suivi-etape.courante::after { border-color: var(--rouge); background: var(--rouge); }
.suivi-etape span {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ardoise); text-transform: uppercase; line-height: 1.3;
}
.suivi-etape.courante span { color: var(--encre); font-weight: 700; }
@media (max-width: 700px) {
  .suivi-piste { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .suivi-etape {
    text-align: left; padding: 0 0 18px 30px;
  }
  .suivi-etape::before { top: 0; bottom: 0; left: 8px; right: auto; width: 6px; height: auto; }
  .suivi-etape::after { top: 0; left: 3px; margin-left: 0; }
  .suivi-etape span { font-size: 12px; }
}

/* Bordereau : bloc de données en clé/valeur monospacé. */
.bordereau { display: grid; gap: 0; margin: 0; }
.bordereau div {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-bottom: 1px dashed var(--ligne-forte);
}
.bordereau div:last-child { border-bottom: 0; }
.bordereau dt { font-size: 13px; color: var(--ardoise); }
.bordereau dd { margin: 0; font-family: var(--mono); font-size: 13.5px; text-align: right; }

/* ------------------------------------------------------------- Pied ------ */
.pied {
  background: var(--encre); color: #A9B1BC; margin-top: 64px;
  padding: 46px 0 26px; font-size: 14px;
}
.pied a { color: #D5DAE1; text-decoration: none; }
.pied a:hover { color: var(--jaune); text-decoration: underline; }
.pied-grille { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pied h4 { color: var(--blanc); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--mono); margin-bottom: 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied-bas {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #7C8794;
}

/* ============================== BACK-OFFICE ============================== */
.app { display: flex; min-height: 100vh; }

.rail {
  width: 232px; flex: none; background: var(--encre); color: #AEB6C1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.rail-entete { padding: 18px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.rail-entete .logo-mot { color: var(--jaune); font-size: 22px; }
.rail-entete .logo-slash i { background: var(--jaune); }
.rail-entete .logo-suffixe { color: var(--blanc); border-color: rgba(255, 255, 255, .25); }
.rail nav { padding: 12px 10px; overflow-y: auto; flex: 1; }
.rail .groupe {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #6C7684; padding: 14px 10px 6px;
}
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 1px;
  border-radius: var(--rayon); text-decoration: none; color: #C3CAD3;
  font-size: 14px; font-weight: 500; border-left: 3px solid transparent;
}
.rail a:hover { background: rgba(255, 255, 255, .07); color: var(--blanc); }
.rail a.actif { background: rgba(255, 204, 0, .13); color: var(--jaune); border-left-color: var(--jaune); }
.rail a .compteur {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  background: rgba(255, 255, 255, .1); padding: 1px 7px; border-radius: 9px;
}
.rail-pied { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.rail-pied strong { color: var(--blanc); display: block; }
.rail-pied .role {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--jaune);
}
.rail-pied a { padding: 0; margin-top: 8px; font-size: 13px; border: 0; color: #98A1AD; }

.zone { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zone-entete {
  background: var(--blanc); border-bottom: 1px solid var(--ligne);
  padding: 18px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.zone-entete h1 { font-size: 24px; margin: 0; }
.zone-entete .fil { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ardoise-clair); margin-bottom: 4px; }
.zone-corps { padding: 24px 28px 56px; flex: 1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.rail-bascule { display: none; }
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .rail { width: 100%; height: auto; position: static; }
  .rail nav { display: none; }
  .rail.ouvert nav { display: block; }
  .rail-bascule {
    display: inline-flex; background: transparent; border: 1px solid rgba(255,255,255,.3);
    color: var(--jaune); border-radius: var(--rayon); padding: 6px 12px; font-weight: 700;
    font-size: 13px; cursor: pointer;
  }
  .rail-entete { display: flex; align-items: center; justify-content: space-between; }
  .zone-corps { padding: 18px 16px 40px; }
  .zone-entete { padding: 16px; }
}

/* ------------------------------------------------------------------ KPI -- */
.grille-kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.kpi {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 16px 18px; border-top: 3px solid var(--encre);
}
.kpi.accent-jaune { border-top-color: var(--jaune); }
.kpi.accent-rouge { border-top-color: var(--rouge); }
.kpi.accent-vert { border-top-color: var(--vert); }
.kpi .eyebrow { display: block; margin-bottom: 8px; }
.kpi-valeur { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.kpi .detail { font-size: 12.5px; color: var(--ardoise); margin-top: 6px; }

/* --------------------------------------------------------------- Tables -- */
.table-enveloppe { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: var(--blanc); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ardoise); font-weight: 600; padding: 11px 14px;
  border-bottom: 1px solid var(--ligne); background: var(--papier); white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFAF8; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; text-decoration-color: var(--jaune);
  text-underline-offset: 3px; text-decoration-thickness: 2px; }
.td-serre { white-space: nowrap; }

.vide {
  text-align: center; padding: 52px 24px; color: var(--ardoise);
  background: var(--blanc); border: 1px dashed var(--ligne-forte); border-radius: var(--rayon);
}
.vide h3 { color: var(--encre); }

/* -------------------------------------------------------------- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 2px; border: 1px solid var(--ligne); background: var(--papier);
  color: var(--ardoise); white-space: nowrap;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.badge-etape { border-color: currentColor; background: transparent; }

/* -------------------------------------------------------------- Score ---- */
.score { display: flex; align-items: center; gap: 9px; }
.score-jauge {
  width: 54px; height: 6px; background: var(--ligne); border-radius: 3px; overflow: hidden;
  flex: none;
}
.score-jauge i { display: block; height: 100%; }
.score-valeur { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.score.fort .score-jauge i, .score-pastille.fort { background: var(--vert); }
.score.bon .score-jauge i, .score-pastille.bon { background: #65A30D; }
.score.moyen .score-jauge i, .score-pastille.moyen { background: var(--ambre); }
.score.faible .score-jauge i, .score-pastille.faible { background: var(--alerte); }

.critere {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--ligne);
}
.critere:last-child { border-bottom: 0; }
.critere .marque {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--blanc);
}
.critere.ok .marque { background: var(--vert); }
.critere.ko .marque { background: var(--ligne-forte); color: var(--ardoise); }
.critere.ko.bloquant .marque { background: var(--alerte); color: var(--blanc); }
.critere .libelle { flex: 1; font-size: 14px; }
.critere .terme { font-family: var(--mono); font-size: 11.5px; color: var(--ardoise); }
.critere .poids { font-family: var(--mono); font-size: 11px; color: var(--ardoise-clair); }

/* -------------------------------------------------------------- Kanban --- */
.kanban {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr);
  gap: 12px; overflow-x: auto; padding-bottom: 14px; align-items: start;
}
.colonne {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  border-top: 3px solid var(--encre); display: flex; flex-direction: column; min-height: 140px;
}
.colonne-entete {
  padding: 11px 13px; border-bottom: 1px solid var(--ligne);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.colonne-entete strong { font-size: 13.5px; }
.colonne-entete .compteur {
  font-family: var(--mono); font-size: 11px; background: var(--papier);
  border: 1px solid var(--ligne); padding: 1px 7px; border-radius: 9px; color: var(--ardoise);
}
.colonne-liste { padding: 10px; display: grid; gap: 9px; min-height: 70px; }
.colonne.survol { background: #FFFDF2; }
.colonne.survol .colonne-liste { outline: 2px dashed var(--jaune-fonce); outline-offset: -4px; }

.carte-candidat {
  background: var(--blanc); border: 1px solid var(--ligne); border-left: 3px solid var(--ligne-forte);
  border-radius: var(--rayon); padding: 11px 12px; text-decoration: none; display: block;
  cursor: grab; transition: box-shadow .12s, border-left-color .12s;
}
.carte-candidat:hover { box-shadow: var(--ombre); border-left-color: var(--jaune); }
.carte-candidat.deplacee { opacity: .4; }
.carte-candidat.ko { border-left-color: var(--alerte); background: #FFFBFB; }
.carte-candidat .nom { font-weight: 700; font-size: 14.5px; display: block; }
.carte-candidat .poste { font-size: 12.5px; color: var(--ardoise); display: block; margin: 2px 0 8px; }
.carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ------------------------------------------------------------ Chronologie */
.chrono { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.chrono::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: var(--ligne);
}
.chrono li { position: relative; padding: 0 0 18px; }
.chrono li::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--blanc); border: 2px solid var(--ligne-forte);
}
.chrono li.jalon::before { background: var(--jaune); border-color: var(--jaune-fonce); }
.chrono .quand {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--ardoise-clair);
  text-transform: uppercase;
}
.chrono .quoi { font-size: 14px; }
.chrono .qui { font-size: 12.5px; color: var(--ardoise); }

/* ------------------------------------------------------------- Barres ---- */
.barres { display: grid; gap: 10px; margin: 0; }
.barre-ligne { display: grid; grid-template-columns: minmax(110px, 1.1fr) 3fr auto; gap: 12px;
  align-items: center; }
.barre-ligne .nom { font-size: 13.5px; }
.barre-piste { height: 20px; background: var(--papier); border: 1px solid var(--ligne);
  border-radius: 2px; overflow: hidden; }
.barre-piste i { display: block; height: 100%; background: var(--jaune); }
.barre-ligne .valeur { font-family: var(--mono); font-size: 13px; font-weight: 600; min-width: 42px;
  text-align: right; }
@media (max-width: 560px) { .barre-ligne { grid-template-columns: 1fr auto; }
  .barre-piste { grid-column: 1 / -1; } }

/* ---------------------------------------------------------- Mise en page - */
.deux-colonnes { display: grid; gap: 16px; }
@media (min-width: 1024px) { .deux-colonnes { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .deux-colonnes.inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.pile { display: grid; gap: 16px; align-content: start; }

.filtres {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 14px 16px; margin-bottom: 18px;
}
.filtres .champ { margin: 0; flex: 1 1 165px; min-width: 0; }
.filtres .champ > label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ardoise); font-family: var(--mono); }

.onglets { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px;
  border-bottom: 2px solid var(--ligne); }
.onglets a {
  padding: 9px 15px; text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--ardoise); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.onglets a.actif { color: var(--encre); border-bottom-color: var(--rouge); }
.onglets a:hover { color: var(--encre); }

.liste-puces { margin: 0; padding-left: 20px; }
.liste-puces li { margin-bottom: 6px; }

details.repli { border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); }
details.repli > summary {
  padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 14px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
details.repli > summary::after { content: "+"; font-family: var(--mono); color: var(--ardoise); }
details.repli[open] > summary::after { content: "−"; }
details.repli > div { padding: 0 16px 16px; }

.texte-cv {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap;
  background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 14px; max-height: 420px; overflow: auto;
}

.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--encre); color: var(--jaune); font-family: var(--mono); font-weight: 600;
  font-size: 14px; letter-spacing: .04em;
}
.avatar.petit { width: 30px; height: 30px; font-size: 11.5px; }

.entete-fiche { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.entete-fiche .avatar { width: 56px; height: 56px; font-size: 18px; }

.etoiles { color: var(--jaune-fonce); letter-spacing: 2px; font-size: 15px; }

/* ------------------------------------------------------------ Connexion -- */
.page-connexion {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    linear-gradient(rgba(20, 24, 31, .92), rgba(20, 24, 31, .92)),
    repeating-linear-gradient(105deg, var(--jaune) 0 34px, var(--encre) 34px 84px);
}
.carte-connexion {
  background: var(--blanc); border-radius: var(--rayon); padding: 34px;
  width: 100%; max-width: 410px; box-shadow: var(--ombre-forte);
  border-top: 4px solid var(--jaune);
}
.comptes-demo {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--ligne-forte);
  font-size: 12.5px; color: var(--ardoise);
}
.comptes-demo table { font-size: 12px; }
.comptes-demo td { padding: 5px 8px 5px 0; border: 0; font-family: var(--mono); }

@media print {
  .rail, .zone-entete .actions, .entete, .pied, .bandeau-demo { display: none; }
  body { background: var(--blanc); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
