/* Charte TEAM — skill branding §3.5 */
:root {
  --tmdo-teal: #1B434B;
  --tmdo-teal-bg: #1B3C43;
  --tmdo-teal-mid: #496A71;
  --tmdo-bluegray-mid: #779097;
  --tmdo-bluegray-light: #A4B6B8;
  --tmdo-gray-light: #DDE3E3;
  --tmdo-orange: #F85B38;
  --tmdo-white: #FFFFFF;
  --font-titre: 'Merriweather', Georgia, serif;
  --font-texte: 'Figtree', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-texte); background: var(--tmdo-gray-light); color: var(--tmdo-teal-bg); }
.hidden { display: none !important; }

/* ---- Bandeau démo ---- */
.bandeau-demo {
  background: var(--tmdo-orange); color: #fff; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; padding: 6px 12px;
}

/* ---- Login ---- */
.ecran-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--tmdo-teal-bg);
}
.carte-login {
  background: var(--tmdo-white); border-radius: 8px; padding: 40px; width: 360px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.marque { font-family: var(--font-titre); font-weight: 700; font-size: 42px; color: var(--tmdo-teal); letter-spacing: 2px; }
.descripteur { color: var(--tmdo-bluegray-mid); font-size: 13px; margin: 4px 0 24px; }
.btn-demo { width: 100%; margin-top: 12px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; color: var(--tmdo-teal); }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 6px; font-family: var(--font-texte); font-size: 15px; background: #fff;
}
/* v0.25 (#11 Corinne) — les radios/checkbox héritaient de input{width:100%} :
   le rond s'étirait sur toute la largeur et flottait loin de son option
   (le « rond bleu entre la date et le M » de son screenshot). */
input[type="radio"], input[type="checkbox"] {
  width: auto; padding: 0; margin: 0; flex: 0 0 auto;
  accent-color: var(--tmdo-teal);
}
input:focus, select:focus { outline: 2px solid var(--tmdo-teal-mid); border-color: transparent; }

.btn-cta {
  background: var(--tmdo-orange); color: #fff; border: none; border-radius: 6px;
  font-family: var(--font-texte); font-weight: 700; font-size: 15px;
  padding: 12px 20px; cursor: pointer; margin-top: 18px; width: 100%;
}
.btn-cta:hover { filter: brightness(1.06); }
.btn-cta:disabled { opacity: .6; cursor: wait; }
.btn-ghost {
  background: transparent; color: var(--tmdo-teal); border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 6px; font-family: var(--font-texte); font-weight: 600; font-size: 14px;
  padding: 10px 16px; cursor: pointer;
}
.erreur { color: #B3261E; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---- En-tête app ---- */
.entete {
  background: var(--tmdo-teal); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 10px 18px; position: sticky; top: 0; z-index: 10;
  height: 58px;
}
.marque-mini { font-family: var(--font-titre); font-weight: 700; font-size: 20px; letter-spacing: 1px; }
.module { margin-left: 12px; color: var(--tmdo-bluegray-light); font-size: 14px; }
.entete-actions { display: flex; align-items: center; gap: 14px; }
.entete .btn-cta { width: auto; margin: 0; padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.entete .btn-ghost { color: #fff; border-color: var(--tmdo-teal-mid); }
.qui { font-size: 13px; color: var(--tmdo-bluegray-light); }

/* ---- Barre d'outils ---- */
.outils {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; padding: 10px 18px; border-bottom: 1px solid var(--tmdo-bluegray-light);
  position: sticky; top: 58px; z-index: 9;
}
.outils input[type="search"] { width: 300px; max-width: 100%; padding: 8px 12px; font-size: 14px; }
.outils select { width: auto; max-width: 210px; padding: 8px 10px; font-size: 13px; color: var(--tmdo-teal); }
.chips { display: flex; gap: 8px; }
.chip {
  background: #fff; color: var(--tmdo-teal-mid); border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 999px; font-family: var(--font-texte); font-weight: 700; font-size: 12px;
  padding: 6px 12px; cursor: pointer; letter-spacing: .3px;
}
.chip.actif { background: var(--tmdo-teal); color: #fff; border-color: var(--tmdo-teal); }
.commutateur-vue {
  margin-left: auto; display: flex; border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 6px; overflow: hidden;
}
.commutateur-vue button {
  background: #fff; color: var(--tmdo-teal-mid); border: none; cursor: pointer;
  font-family: var(--font-texte); font-weight: 600; font-size: 13px; padding: 8px 14px;
}
.commutateur-vue button + button { border-left: 1px solid var(--tmdo-bluegray-light); }
.commutateur-vue button.actif { background: var(--tmdo-teal); color: #fff; }

/* ---- Kanban (classique) ---- */
.kanban {
  display: flex; gap: 12px; padding: 16px; overflow-x: auto;
  align-items: flex-start; min-height: calc(100vh - 110px);
}
.colonne {
  background: #fff; border-radius: 8px; min-width: 250px; width: 250px; flex-shrink: 0;
  border-top: 4px solid var(--tmdo-teal-mid); padding: 10px; max-height: calc(100vh - 150px);
  display: flex; flex-direction: column;
}
.colonne.finale { border-top-color: var(--tmdo-orange); }
.colonne.sortie { border-top-color: var(--tmdo-bluegray-light); opacity: .85; }
.colonne.cible { outline: 2px dashed var(--tmdo-orange); }
.colonne h3 { font-family: var(--font-texte); font-weight: 700; font-size: 13px; color: var(--tmdo-teal); display: flex; justify-content: space-between; padding: 0 4px 8px; }
.colonne h3 .compte { color: var(--tmdo-bluegray-mid); font-weight: 600; }
.cartes { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 40px; flex: 1; }
.vide { color: var(--tmdo-bluegray-light); font-size: 13px; text-align: center; padding: 10px 0; }

/* ---- Kanban par phases ---- */
.phases {
  display: flex; gap: 16px; padding: 16px; overflow-x: auto;
  align-items: flex-start; min-height: calc(100vh - 110px);
}
.phase {
  background: rgba(27,67,75,.05); border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 10px; padding: 10px; flex-shrink: 0;
}
.phase-entete {
  display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; cursor: pointer;
  user-select: none;
}
.phase-entete h2 { font-family: var(--font-texte); font-weight: 700; font-size: 13px; color: var(--tmdo-teal); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.phase-entete .compte { color: var(--tmdo-bluegray-mid); font-weight: 600; font-size: 13px; }
.phase-entete .pli { margin-left: auto; color: var(--tmdo-bluegray-mid); font-size: 12px; font-weight: 700; }
.phase-colonnes { display: flex; gap: 10px; align-items: flex-start; }
.phase .colonne { min-width: 230px; width: 230px; max-height: calc(100vh - 200px); }
.phase.repliee .phase-colonnes { display: none; }
.phase.repliee { opacity: .8; }

/* ---- Vue liste ---- */
.liste { padding: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 1100px; margin: 0 auto; }
.liste-groupe { background: #fff; border-radius: 8px; border-top: 4px solid var(--tmdo-teal-mid); overflow: hidden; }
.liste-groupe.finale { border-top-color: var(--tmdo-orange); }
.liste-groupe.sortie { border-top-color: var(--tmdo-bluegray-light); }
.liste-groupe h3 { font-size: 13px; font-weight: 700; color: var(--tmdo-teal); padding: 10px 14px 6px; display: flex; justify-content: space-between; }
.liste-groupe h3 .compte { color: var(--tmdo-bluegray-mid); font-weight: 600; }
.rangee {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr auto; gap: 10px; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--tmdo-gray-light); cursor: pointer; font-size: 13px;
}
.rangee:hover { background: rgba(27,67,75,.04); }
.rangee .nom { font-weight: 700; font-size: 14px; color: var(--tmdo-teal-bg); }
.rangee .dim { color: var(--tmdo-teal-mid); }
.rangee .badges { margin: 0; }
@media (max-width: 720px) { .rangee { grid-template-columns: 1fr auto; } .rangee .dim { display: none; } }

/* ---- Cartes ---- */
.carte {
  background: var(--tmdo-gray-light); border-radius: 6px; padding: 10px; cursor: grab;
  border-left: 3px solid var(--tmdo-teal-mid); user-select: none;
}
.carte:active { cursor: grabbing; }
.carte:hover { box-shadow: 0 2px 8px rgba(27,60,67,.18); }
.carte .nom { font-weight: 700; font-size: 14px; color: var(--tmdo-teal-bg); }
.carte .detail { font-size: 12px; color: var(--tmdo-teal-mid); margin-top: 2px; }
.carte .badges { margin-top: 6px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 700; border-radius: 4px; padding: 2px 6px; letter-spacing: .3px; }
.badge.metier { font-size: 11px; }
.badge.metier.inconnu { background: #fff; color: var(--tmdo-teal-mid); border: 1px dashed var(--tmdo-bluegray-light); }
.badge.express { background: var(--tmdo-orange); color: #fff; }
.badge.express.echu { background: #B3261E; color: #fff; }
.badge.age { background: #fff; color: var(--tmdo-bluegray-mid); border: 1px solid var(--tmdo-gray-light); font-weight: 600; }
.badge.age.vieux { color: var(--tmdo-orange); border-color: var(--tmdo-orange); background: #FFF4F0; }
.badge.blacklist { background: #B3261E; color: #fff; }
.badge.partenaire { background: var(--tmdo-bluegray-mid); color: #fff; }
.carte.secoue { animation: secousse .35s; }
@keyframes secousse { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---- Fiche candidat (panneau latéral) ---- */
.fiche-voile { position: fixed; inset: 0; background: rgba(27,60,67,.35); z-index: 55; }
.fiche {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 94vw;
  background: #fff; z-index: 60; box-shadow: -12px 0 40px rgba(0,0,0,.28);
  padding: 24px; overflow-y: auto;
}
.fiche-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fiche-entete h2 { font-family: var(--font-titre); font-size: 22px; color: var(--tmdo-teal); }
.fiche-entete .btn-ghost { padding: 6px 10px; }
.fiche-actions { display: flex; gap: 8px; margin: 14px 0 2px; }
.fiche-actions .btn-cta { width: auto; flex: 1; margin: 0; text-align: center; text-decoration: none; display: block; }
.fiche .statut-actuel {
  display: inline-block; background: var(--tmdo-teal); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 4px 12px; margin: 10px 0 4px;
}
.fiche .badges { margin: 8px 0; }
.fiche-champs { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 16px 0; font-size: 13px; }
.fiche-champs dt { color: var(--tmdo-bluegray-mid); font-weight: 600; }
.fiche-champs dd { color: var(--tmdo-teal-bg); }
.fiche-champs dd a { color: var(--tmdo-teal); }
.fiche h4 { font-size: 13px; font-weight: 700; color: var(--tmdo-teal); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .4px; }
.fiche .note { margin-bottom: 0; }
.fiche .motif-affiche { background: #FFF4F0; border: 1px solid var(--tmdo-orange); border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-top: 8px; }

/* ---- Modals ---- */
.voile { position: fixed; inset: 0; background: rgba(27,60,67,.6); display: flex; align-items: center; justify-content: center; z-index: 70; }
.modal { background: #fff; border-radius: 8px; padding: 26px; width: 560px; max-width: 94vw; max-height: 90vh; overflow-y: auto; }
.modal.petite { width: 420px; }
.modal h2 { font-family: var(--font-titre); font-size: 20px; color: var(--tmdo-teal); margin-bottom: 6px; }
.chrono { font-family: var(--font-texte); font-weight: 400; font-size: 13px; color: var(--tmdo-bluegray-mid); }
.note { font-size: 13px; color: var(--tmdo-bluegray-mid); margin-bottom: 10px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.grille2 .pleine { grid-column: 1 / -1; }
.modal-boutons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-boutons .btn-cta { width: auto; margin: 0; }

/* ---- Doublons ---- */
.zone-doublons { margin-top: 16px; border: 2px solid var(--tmdo-orange); border-radius: 6px; padding: 12px; background: #FFF4F0; }
.zone-doublons h4 { font-size: 14px; color: var(--tmdo-orange); margin-bottom: 8px; }
.doublon { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--tmdo-gray-light); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doublon:last-child { border-bottom: none; }
.zone-doublons .avert-blacklist { color: #B3261E; font-weight: 700; }

/* ---- Choix statuts (fiche) ---- */
.choix-statuts { display: flex; flex-direction: column; gap: 8px; }
.btn-statut {
  background: var(--tmdo-gray-light); color: var(--tmdo-teal); border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 6px; font-family: var(--font-texte); font-weight: 600; font-size: 14px;
  padding: 11px 14px; cursor: pointer; text-align: left;
}
.btn-statut:hover { background: var(--tmdo-teal); color: #fff; }
.btn-statut.sortie { border-style: dashed; color: var(--tmdo-bluegray-mid); }
.btn-statut.sortie:hover { background: var(--tmdo-bluegray-mid); color: #fff; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--tmdo-teal); color: #fff; padding: 12px 20px; border-radius: 6px;
  font-size: 14px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: 90vw;
}
.toast.mauvais { background: #B3261E; }

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .fiche { width: 100vw; max-width: 100vw; }
  .outils { gap: 8px; padding: 8px 12px; }
  .outils input[type="search"] { width: 100%; }
  .commutateur-vue { margin-left: 0; }
  .kanban, .phases { scroll-snap-type: x proximity; }
  .colonne { scroll-snap-align: start; }
  .entete { padding: 10px 12px; }
  .module { display: none; }
}

/* ---- M2 Préqualif ---- */
.prequalif { margin: 18px 0; border-top: 1px solid var(--tmdo-gray-light); padding-top: 12px; }
.prequalif h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 2px 9px; }
.pill-gris { background: var(--tmdo-gray-light); color: var(--tmdo-teal-mid); }
.pill-vert { background: #2E7D32; color: #fff; }
.pill-jaune { background: #F0A500; color: #fff; }
.pill-rouge { background: #B3261E; color: #fff; }
.pill-orange { background: var(--tmdo-orange); color: #fff; }
.alerte-rouge { background: #B3261E; color: #fff; border-radius: 6px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin: 10px 0; }
.nn { border: 1px solid var(--tmdo-gray-light); border-radius: 6px; margin: 8px 0; background: #fff; }
.nn summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 13px; color: var(--tmdo-teal); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nn-corps { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mini { border: 1px solid var(--tmdo-bluegray-light); background: var(--tmdo-gray-light); color: var(--tmdo-teal); border-radius: 5px; font-family: var(--font-texte); font-weight: 600; font-size: 12px; padding: 7px 10px; cursor: pointer; }
.mini:hover { filter: brightness(.95); }
.mini.vert { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.mini.jaune { background: #F0A500; border-color: #F0A500; color: #fff; }
.mini.rouge { background: #B3261E; border-color: #B3261E; color: #fff; }
.mini.gris { background: var(--tmdo-bluegray-mid); border-color: var(--tmdo-bluegray-mid); color: #fff; }
.mini.orange { background: var(--tmdo-orange); border-color: var(--tmdo-orange); color: #fff; }
.mini.fichier { display: inline-block; }
.inline { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; font-size: 13px; margin: 0; }
.ref-ligne { border-bottom: 1px dashed var(--tmdo-gray-light); padding: 8px 0; }
.ref-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.ref-notes { flex: 1; min-width: 140px; }
.ref-boutons { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.ref-ajout { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ref-ajout input { flex: 1; min-width: 130px; }
.ligne-doc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.grille-carte { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grille-carte input { flex: 1; min-width: 130px; }
.comp-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--tmdo-gray-light); flex-wrap: wrap; }
.comp-item input.comp-nombre { width: 80px; }
.comp-item input.comp-texte { flex: 1; min-width: 140px; }
.oui-non { display: flex; gap: 12px; }
.express-zone { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---- v0.5 RDV entrevue ---- */
.rdv-zone { display: flex; flex-direction: column; gap: 8px; }
.rdv-actuel { font-size: 13px; background: var(--tmdo-gray-light); border-radius: 6px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rdv-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rdv-form input, .rdv-form select { flex: 1; min-width: 150px; }

/* ---- v0.6 : desktop — l'app respire sur grand écran (feedback Corinne) ---- */
@media (min-width: 900px) {
  .modal { width: 880px; }
  .modal.petite { width: 480px; }
  .nn-corps { padding: 8px 18px 16px; }
  .kanban { padding: 20px 24px; }
  .colonne { min-width: 270px; width: 270px; }
}
.express-zone input { max-width: 200px; }
input.invalide { border-color: #B3261E; outline: 1px solid #B3261E; }

/* ---- v0.7 : phases (feedback Corinne) ---- */
.ph1-bloc { border: 1px solid var(--tmdo-gray-light); border-radius: 6px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.ph1-bloc h5 { font-size: 13px; color: var(--tmdo-teal); }
.ph1-bloc textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 6px; font-family: var(--font-texte); font-size: 14px; }
.recap summary { background: var(--tmdo-gray-light); border-radius: 6px 6px 0 0; }
.recap-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--tmdo-gray-light); }
.ref-synd { margin-top: 8px; font-size: 13px; }
.ref-synd summary { cursor: pointer; font-weight: 600; color: var(--tmdo-teal-mid); }
.synd-ligne { padding: 6px 0; border-bottom: 1px dashed var(--tmdo-gray-light); }

/* ---- v0.7.1 : quartier + véhicule ---- */
.ligne-2 { display: flex; gap: 8px; flex-wrap: wrap; }
.ligne-2 input { flex: 1; min-width: 160px; }
.vehicule-choix { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; color: var(--tmdo-teal); flex-wrap: wrap; }
.badge.autobus { background: var(--tmdo-bluegray-mid); color: #fff; }

/* ---- v0.9.2 : fait (se range) vs à faire (saute aux yeux) ---- */
.nn.fait { border-left: 4px solid #2E7D32; background: #F4FAF6; }
.nn.fait > summary { color: var(--tmdo-teal-mid); }
.nn.afaire { border-left: 4px solid var(--tmdo-orange); }
.nn.afaire > summary::after { content: 'à faire'; margin-left: auto; background: var(--tmdo-orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 2px 9px; letter-spacing: .3px; }

/* ---- v0.10 : quick wins V2 Corinne ---- */
/* v0.38.1 — la largeur desktop de la fiche vit maintenant en UN SEUL endroit :
   la passe desktop en fin de fichier (l'ancien 760px !important d'ici la bloquait). */
.zones-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 6px 12px; }
.zones-choix label {
  display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px;
  text-align: left; font-weight: 400; font-size: 13.5px; margin: 0; cursor: pointer;
}
.zones-choix input[type="checkbox"] { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.chips-attitude { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.chip { border: 1px solid var(--tmdo-bluegray-light); background: #fff; border-radius: 12px; font-size: 12px; padding: 4px 10px; cursor: pointer; color: var(--tmdo-teal); }
.chip:hover { background: var(--tmdo-teal); color: #fff; }

/* ==== v0.11 — ENTREVUE GUIDÉE (plein écran, formulaire Corinne 2.0→2.5) ==== */
/* Réponse au point « Générale 1 » : sur ordinateur, la zone de travail prend  */
/* TOUT l'écran — fini le panneau minuscule pendant qu'on répond aux questions. */
.entrevue-ecran {
  position: fixed; inset: 0; z-index: 50;
  background: var(--tmdo-gray-light);
  display: flex; flex-direction: column;
}
.entrevue-entete {
  background: var(--tmdo-teal); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 10px 18px; height: 58px; flex: 0 0 auto;
}
.entrevue-entete .btn-ghost { color: #fff; border-color: var(--tmdo-teal-mid); }
.entrevue-titre { display: flex; align-items: center; }
.entrevue-stepper {
  display: flex; gap: 6px; padding: 10px 18px; background: #fff;
  border-bottom: 1px solid var(--tmdo-bluegray-light); overflow-x: auto; flex: 0 0 auto;
}
.step {
  border: 1px solid var(--tmdo-bluegray-light); background: #fff; color: var(--tmdo-teal-mid);
  border-radius: 20px; padding: 7px 14px; font-family: var(--font-texte); font-weight: 600;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.step.actif { background: var(--tmdo-teal); color: #fff; border-color: var(--tmdo-teal); }
.step.fait { border-color: #2E7D32; color: #2E7D32; }
.step.fait::before { content: '✓ '; }
.entrevue-corps { flex: 1 1 auto; overflow-y: auto; padding: 22px 18px 60px; }
.entrevue-section { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 8px; padding: 26px 28px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.entrevue-section h3 { font-family: var(--font-titre); color: var(--tmdo-teal); font-size: 20px; margin-bottom: 4px; }
.entrevue-consigne {
  background: var(--tmdo-gray-light); border-left: 4px solid var(--tmdo-teal-mid);
  padding: 10px 14px; border-radius: 4px; font-size: 14px; margin: 12px 0 18px; color: var(--tmdo-teal-bg);
}
.entrevue-section h5 { color: var(--tmdo-teal); margin: 18px 0 8px; font-size: 14px; }
.check-liste { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.check-liste label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 0; color: var(--tmdo-teal-bg); cursor: pointer; }
.check-liste input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.check-comprend { background: #EAF4EC; border-radius: 6px; padding: 10px 12px; }
.grille-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin: 8px 0; }
.grille-cases label { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
.confirme-ligne {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--tmdo-gray-light);
}
.confirme-ligne .cl-etiquette { font-weight: 600; font-size: 13px; color: var(--tmdo-teal); }
.confirme-ligne .cl-valeur { font-size: 15px; }
.confirme-ligne .cl-valeur input { padding: 7px 10px; font-size: 14px; }
.cl-choix { display: flex; gap: 4px; }
.cl-choix button {
  border: 1px solid var(--tmdo-bluegray-light); background: #fff; border-radius: 6px;
  font-family: var(--font-texte); font-size: 12.5px; font-weight: 600; padding: 6px 10px; cursor: pointer; color: var(--tmdo-teal-mid);
}
.cl-choix button.on-confirme { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.cl-choix button.on-corrige { background: var(--tmdo-orange); border-color: var(--tmdo-orange); color: #fff; }
.entrevue-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.entrevue-nav .btn-cta { width: auto; margin: 0; }
.entrevue-nav .btn-ghost { align-self: center; }
.decision-choix { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.decision-choix label {
  display: flex; gap: 10px; align-items: center; border: 1px solid var(--tmdo-bluegray-light);
  border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin: 0; cursor: pointer;
}
.decision-choix label.sel-embauche { border-color: #2E7D32; background: #EAF4EC; }
.decision-choix label.sel-en_attente { border-color: #E9A100; background: #FDF6E4; }
.decision-choix label.sel-non_retenu { border-color: #B3261E; background: #FBEBEA; }
.flags-appel { background: #FDF6E4; border-left: 4px solid #E9A100; padding: 10px 14px; border-radius: 4px; font-size: 14px; margin: 8px 0; }
.entrevue-section textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 6px; font-family: var(--font-texte); font-size: 14.5px; }
.entrevue-section textarea:focus { outline: 2px solid var(--tmdo-teal-mid); border-color: transparent; }
@media (max-width: 700px) {
  .entrevue-section { padding: 18px 14px; }
  .confirme-ligne { grid-template-columns: 1fr; gap: 4px; }
  .entrevue-entete .btn-ghost { font-size: 12px; padding: 8px 10px; }
}

/* ---- M4 signature ---- */
.sig-modal { width: 720px; }
.sig-contenu { max-height: 40vh; overflow-y: auto; border: 1px solid var(--tmdo-gray-light); border-radius: 6px; padding: 14px; font-size: 13px; margin: 10px 0; }
.sig-contenu h1 { font-size: 17px; } .sig-contenu h2 { font-size: 14px; margin-top: 10px; }
#sig-canvas { border: 2px dashed var(--tmdo-bluegray-mid); border-radius: 6px; width: 100%; touch-action: none; background: #fff; }

/* ---- v0.12.4 : références sauvegardées (phase 1) ---- */
.ref-sauvee {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--tmdo-gray-light); border-radius: 6px; padding: 7px 10px; margin: 4px 0; font-size: 13.5px;
}
.ref-sauvee .ref-effacer, .ref-ligne .ref-effacer { padding: 3px 8px; }

/* ===== v0.13 — M5 : validation, assistance SEL, transcription Nethris ===== */
.alerte-orange { background: #F0A500; color: #fff; border-radius: 6px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin: 10px 0; }
.liste-validation { list-style: none; padding: 0; margin: 8px 0; }
.liste-validation li { padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--tmdo-gray-light); display: flex; align-items: center; gap: 8px; }
.grille-copie { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.ligne-copie { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: var(--tmdo-gray-light); border-radius: 6px; }
.ligne-copie .lc-libelle { font-size: 12px; font-weight: 700; color: var(--tmdo-teal-mid); min-width: 130px; }
.ligne-copie .lc-valeur { font-size: 14px; font-weight: 600; color: var(--tmdo-teal); flex: 1; word-break: break-word; }
.ligne-copie .lc-valeur.vide { color: var(--tmdo-bluegray-mid); font-weight: 400; }
.ligne-copie .lc-note { flex-basis: 100%; margin: 0; font-size: 11px; }
.ligne-copie select { flex: 1; min-width: 140px; padding: 6px 8px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 5px; font-family: var(--font-texte); font-size: 13px; }
.sel-pasapas { margin: 8px 0; }
.sel-pasapas summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--tmdo-teal-mid); }
.sel-pasapas ol { margin: 6px 0 4px 18px; padding: 0; }
.sel-pasapas li { margin-bottom: 3px; }
#motif-auto { width: 100%; padding: 9px 10px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 6px; font-family: var(--font-texte); font-size: 14px; margin-bottom: 8px; }

/* v0.13.1 — badge RDV entrevue sur les cartes */
.badge.rdv { background: #fff; color: var(--tmdo-teal-mid); border: 1px solid var(--tmdo-bluegray-light); font-weight: 700; }
.badge.rdv.passe { background: #B3261E; color: #fff; border: none; }

/* v0.13.2 — pan du tableau au drag */
.kanban, .phases { cursor: grab; }
.kanban.pan-actif, .phases.pan-actif { cursor: grabbing; user-select: none; }

/* v0.13.4 — capture syndicat (entrevue 2.0 ④) */
.s20-syndicat { display: flex; gap: 8px; flex-wrap: wrap; }
.s20-syndicat select { flex: 0 0 180px; padding: 8px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 6px; font-family: var(--font-texte); font-size: 14px; }
.s20-syndicat input { flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 6px; font-family: var(--font-texte); font-size: 14px; }

/* v0.17 — M7 incidents */
#modal-nouveau .alerte-rouge, #bloc-incidents .alerte-rouge { font-weight: 600; }
.modal select, .modal input, .modal textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--tmdo-bluegray-light); border-radius: 6px; font-family: var(--font-texte); font-size: 14px; margin-top: 4px; }

/* v0.18.2 — feedbacks UX Thomas (12 juillet) */
/* Labels visibles au-dessus des champs (les placeholders disparaissent à la saisie) */
.champ-label { display: block; font-size: 12px; font-weight: 700; color: var(--tmdo-bluegray-mid); text-transform: uppercase; letter-spacing: .4px; margin: 10px 0 3px; }
.ligne-2 > div { flex: 1; min-width: 0; }
/* Texture de VRAI bouton sur les actions principales (relief + enfoncement au clic) */
.btn-cta, .mini.vert, .mini.orange {
  background-image: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(0,0,0,.10));
  box-shadow: 0 2px 0 rgba(0,0,0,.28), 0 3px 8px rgba(0,0,0,.18);
  border-bottom: 2px solid rgba(0,0,0,.25);
  transition: transform .05s ease, box-shadow .05s ease, filter .1s ease;
}
.btn-cta:hover, .mini.vert:hover, .mini.orange:hover { filter: brightness(1.07); }
.btn-cta:active, .mini.vert:active, .mini.orange:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.18);
  border-bottom-color: transparent;
}
.btn-cta:disabled, .mini.vert:disabled { filter: saturate(.4) brightness(.9); box-shadow: none; border-bottom-color: transparent; }

/* ---- v0.19 (M8) : 📊 Pilotage ---- */
.pilotage { max-width: 1080px; margin: 0 auto; padding: 8px 6px 70px; }
.pilotage h2 { font-family: var(--font-titre); color: var(--tmdo-teal); margin: 6px 0 12px; }
.pilotage h3 { color: var(--tmdo-teal); margin: 0 0 8px; font-size: 16px; }
.pil-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pil-carte { background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 3px rgba(27, 60, 67, .12); }
.pil-carte.accent { outline: 2px solid var(--tmdo-orange); }
.pil-carte .n { font-size: 28px; font-weight: 800; font-family: var(--font-titre); color: var(--tmdo-teal); }
.pil-carte .n small { font-size: 14px; color: var(--tmdo-bluegray-mid); font-weight: 700; }
.pil-carte .l { font-size: 11.5px; color: var(--tmdo-bluegray-mid); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.pil-section { background: #fff; border-radius: 8px; padding: 16px; margin-top: 14px; box-shadow: 0 1px 3px rgba(27, 60, 67, .12); }
/* Le gros bouton texturé (standard UX Thomas) : relief, ombre, enfoncement au clic */
.pil-action { display: block; width: 100%; padding: 15px 16px; margin: 12px 0 4px; font-family: var(--font-texte); font-size: 16px; font-weight: 800; text-align: left; color: #fff; background: linear-gradient(180deg, #ff7a57, var(--tmdo-orange)); border: none; border-radius: 10px; box-shadow: 0 3px 0 #c33e20, 0 6px 14px rgba(248, 91, 56, .30); cursor: pointer; }
.pil-action:active { transform: translateY(2px); box-shadow: 0 1px 0 #c33e20; }
.pil-action:disabled { opacity: .6; cursor: wait; }
.pil-action.secondaire { background: linear-gradient(180deg, #5b7e86, var(--tmdo-teal-mid)); box-shadow: 0 3px 0 #2e4b52, 0 6px 14px rgba(73, 106, 113, .30); }
.pil-action.secondaire:active { box-shadow: 0 1px 0 #2e4b52; }
.pil-action .sous { display: block; font-weight: 500; font-size: 12.5px; opacity: .92; margin-top: 3px; }
.badge-pilotage { display: inline-block; margin-left: 6px; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: var(--tmdo-orange); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.pil-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pil-table th { text-align: left; color: var(--tmdo-bluegray-mid); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding: 6px 8px; border-bottom: 1px solid var(--tmdo-gray-light); }
.pil-table td { padding: 7px 8px; border-bottom: 1px solid #eef1f1; }
.pilotage details { margin: 8px 0; }
.pilotage summary { cursor: pointer; font-weight: 700; color: var(--tmdo-teal); padding: 6px 0; }
.pil-chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; margin: 0 6px 4px 0; }
.pil-chip.ok { background: #e2f2e6; color: #1d6b34; }
.pil-chip.off { background: #fdeae5; color: #b23418; }
.pil-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e4e9e9; font-size: 13.5px; }
.pil-item .mini { flex: none; }

/* ========== v0.20 — M9 : Profil dispatch (carte de hockey) ========== */
.bloc-profil { margin-top: 10px; padding: 12px; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; }
.bloc-profil h4 { margin: 0 0 8px; }
.s25-profil { padding: 10px; background: #f7f9fc; border: 1px dashed #cdd6e1; border-radius: 8px; margin-bottom: 12px; }
.chips-zone { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip-profil {
  padding: 7px 12px; border-radius: 999px; border: 1.5px solid #cdd6e1; background: #fff;
  font-size: .86rem; cursor: pointer; box-shadow: 0 1px 2px rgba(20,30,50,.08);
  transition: transform .05s, background .1s;
}
.chip-profil:active { transform: translateY(1px); box-shadow: none; }
.chip-profil.actif { background: #1B7A43; border-color: #146034; color: #fff; font-weight: 600; }
.chip-profil.pref.actif { background: #E8731A; border-color: #c05e11; }
.chip-libre { max-width: 320px; }
.sous-titre { margin: 10px 0 2px; font-weight: 600; }
.profil-photo-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.label-fichier { cursor: pointer; display: inline-block; }
.profil-boutons { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.btn-cta-mini { padding: 10px 16px; font-size: .95rem; }
#pf-texte { width: 100%; font-family: inherit; }

/* v0.20.1 — durées par tâche (paliers) */
.duree-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.duree-tache { min-width: 140px; font-size: .86rem; font-weight: 600; }
.seg { display: inline-flex; border: 1.5px solid #cdd6e1; border-radius: 999px; overflow: hidden; background: #fff; }
.seg-btn { padding: 7px 12px; border: 0; background: transparent; font-size: .82rem; cursor: pointer; border-right: 1px solid #e3e8ef; }
.seg-btn:last-child { border-right: 0; }
.seg-btn.actif { background: #1B7A43; color: #fff; font-weight: 700; }

/* v0.20.2 — visibilité des manquants (préqualif) */
.verifs-manquantes { background: #FFF4E5; border: 2px solid #E8731A; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: .92rem; }
details.nn.a-faire { border: 2px solid #E8731A; border-radius: 10px; background: #FFFBF5; }
details.nn.a-faire > summary { font-weight: 700; }

/* ========== v0.21 — 🎴 Carte de hockey (charte TEAM : #1B434B / #F85B38 / Merriweather+Figtree) ========== */
.carte-overlay { position: fixed; inset: 0; background: rgba(27, 60, 67, .72); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.carte-hockey { position: relative; width: min(400px, 94vw); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-family: 'Figtree', -apple-system, 'Segoe UI', sans-serif; }
.carte-fermer { position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.carte-bande { background: #1B434B; color: #fff; padding: 20px 118px 20px 18px; min-height: 96px; }
.carte-nom { font-family: 'Merriweather', Georgia, serif; font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.carte-metier { color: #A4B6B8; font-weight: 600; font-size: .92rem; margin-top: 4px; }
.carte-photo { position: absolute; top: 16px; right: 16px; width: 86px; height: 86px; border-radius: 50%; border: 3px solid #F85B38; background: #496A71; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Merriweather', Georgia, serif; font-size: 1.6rem; overflow: hidden; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-corps { padding: 14px 18px 6px; }
.carte-section { font-weight: 700; color: #1B434B; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin: 10px 0 4px; border-bottom: 2px solid #DDE3E3; padding-bottom: 3px; }
.carte-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 3px 0; font-size: .92rem; color: #1B3C43; }
.carte-etoiles { color: #F85B38; letter-spacing: 2px; white-space: nowrap; font-size: .9rem; }
.carte-prefs { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 0 4px; }
.carte-pref { background: #DDE3E3; color: #1B434B; border-radius: 4px; padding: 3px 8px; font-size: .8rem; font-weight: 600; }
.carte-pied { display: flex; justify-content: space-between; align-items: center; background: #1B3C43; color: #A4B6B8; font-size: .72rem; padding: 8px 18px; margin-top: 10px; border-top: 3px solid #F85B38; }

/* ═══ v0.24 — Carte nominative sur template illustré ═══ */
.carte-hockey.ctpl { width: min(440px, 94vw); padding: 0; background-size: 100% 100%; background-repeat: no-repeat; position: relative; overflow: hidden; border-radius: 10px; }
.ctpl-panneau { position: absolute; overflow: hidden; padding: 4.5% 4%; box-sizing: border-box; display: flex; flex-direction: column; }
.ctpl-cadre { width: 66%; margin: 0 auto 6px; aspect-ratio: 1; background: #F85B38; clip-path: polygon(9% 0, 91% 0, 100% 9%, 100% 91%, 91% 100%, 9% 100%, 0 91%, 0 9%); padding: 3px; box-sizing: border-box; flex: 0 0 auto; }
.ctpl-photo { width: 100%; height: 100%; clip-path: polygon(9% 0, 91% 0, 100% 9%, 100% 91%, 91% 100%, 9% 100%, 0 91%, 0 9%); background: #C9C4B8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ctpl-photo span { font-weight: 800; font-size: 26px; color: #8D897E; letter-spacing: 1px; }
.ctpl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctpl-nom { font-weight: 800; font-size: 15px; color: #1B434B; text-align: center; line-height: 1.15; }
.ctpl-classif { font-size: 10.5px; font-weight: 700; color: #F85B38; text-align: center; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ctpl-titre { font-weight: 800; font-size: 11px; color: #1B434B; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid #F85B38; padding-bottom: 2px; margin: 7px 0 4px; }
.ctpl-taches { margin: 0; padding: 0 0 0 14px; }
.ctpl-taches li { font-size: 10.5px; color: #1B3C43; line-height: 1.35; margin: 2px 0; }
.ctpl-taches li::marker { color: #F85B38; }
.ctpl-force { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; color: #1B3C43; margin: 2px 0; gap: 6px; }
.ctpl-force > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctpl-etoiles { color: #F85B38; font-size: 10px; letter-spacing: 1px; flex: 0 0 auto; }
.ctpl-vide { font-size: 10.5px; color: #6b7c82; font-style: italic; }
.ctpl-wordmark { position: absolute; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; color: #EFE9DC; font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* ═══ v0.24 — Carte nominative sur template illustré ═══ */
.carte-hockey.ctpl { position: relative; width: min(440px, 94vw); padding: 0; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 12px; overflow: hidden; container-type: inline-size; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.ctpl-panneau { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; gap: 1.1cqw; padding: 2cqw 2.4cqw; overflow: hidden; }
.ctpl-cadre { width: 58%; max-width: 150px; aspect-ratio: 1 / 1; align-self: center; flex-shrink: 0; background: #F85B38; padding: 1.1cqw; clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%); }
.ctpl-photo { width: 100%; height: 100%; background: #C7CBCE; display: flex; align-items: center; justify-content: center; overflow: hidden; clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%); }
.ctpl-photo span { font-weight: 800; font-size: 7.5cqw; color: #5B6770; letter-spacing: .04em; }
.ctpl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctpl-nom { font-weight: 800; color: #1B434B; font-size: 4cqw; line-height: 1.05; text-align: center; margin-top: .5cqw; }
.ctpl-classif { color: #F85B38; font-weight: 700; font-size: 2.7cqw; text-align: center; text-transform: uppercase; letter-spacing: .14em; }
.ctpl-titre { color: #1B434B; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 2.9cqw; border-bottom: 2px solid #1B434B; padding-bottom: .4cqw; margin-top: .8cqw; flex-shrink: 0; }
.ctpl-taches { margin: 0; padding: 0 0 0 3.2cqw; display: flex; flex-direction: column; gap: .6cqw; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.ctpl-taches li { font-size: 2.6cqw; color: #1B3C43; line-height: 1.2; list-style: none; position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 1.6cqw; }
.ctpl-taches li > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ctpl-taches li::before { content: '•'; color: #F85B38; position: absolute; left: -2.9cqw; font-weight: 800; }
.ctpl-prefs { display: flex; flex-wrap: wrap; gap: .8cqw; flex-shrink: 0; }
.ctpl-pref { font-size: 2.2cqw; color: #1B3C43; border: 1px solid #1B434B; border-radius: 99px; padding: .4cqw 1.5cqw; line-height: 1.2; }
.ctpl-etoiles { color: #F85B38; letter-spacing: .12em; flex-shrink: 0; }
.ctpl-vide { font-size: 2.7cqw; color: #6E8087; font-style: italic; }
.ctpl-wordmark { position: absolute; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; color: #F3EAD9; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: 2.5cqw; pointer-events: none; }

/* ===== v0.25 — feedback Corinne round 3 ===== */
/* #9 — bouton Enregistrer : gros, pleine largeur en phase 1 ; ORANGE quand des changements ne sont pas sauvés */
.btn-sauver-ph1 { width: 100%; margin-top: 10px; }
#ph1-enregistrer.sale, #carte-enregistrer.sale, #comp-enregistrer.sale {
  background: var(--tmdo-orange) !important; border-color: var(--tmdo-orange) !important;
  color: #fff !important; animation: pulse-sale 1.5s ease-in-out infinite;
}
@keyframes pulse-sale { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 91, 56, .45); } 50% { box-shadow: 0 0 0 7px rgba(248, 91, 56, 0); } }
/* #14/16 — raisons de validation cliquables */
.motifs-rapides { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chip-motif { cursor: pointer; }
/* #8 — note d'une référence consignée + édition inline */
.ref-maj { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ref-maj .ref-notes-edit { flex: 1; min-width: 160px; }

/* v0.26 — archivage (décision Thomas : archiver, pas de delete) */
.fiche-archivee { background: var(--tmdo-gray-light); border-left: 4px solid var(--tmdo-bluegray-mid); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0; }
.btn-ghost.archiver { display: block; margin-top: 16px; opacity: .7; font-size: 13px; }
.btn-ghost.archiver:hover { opacity: 1; }

/* v0.28.2 — guides d'appel : 📖 par section, script en panneau flottant à
   GAUCHE de la fiche (lecture pendant la frappe, zéro allongement du form).
   Repli inline sur écran étroit. */
.guide-bouton {
  display: inline-block; margin-left: 8px; vertical-align: middle; cursor: pointer;
  font-size: 12px; font-weight: normal; color: var(--tmdo-teal); background: var(--tmdo-gray-light);
  border: 1px solid var(--tmdo-bluegray-light); border-radius: 12px; padding: 2px 10px;
}
.guide-bouton.actif { background: var(--tmdo-teal); color: #fff; }
#guide-flottant {
  /* v0.28.4 — colonne pleine hauteur collée au bord gauche de la fiche
     (le cadre rouge de Thomas), pas un encart perché en haut. */
  position: fixed; top: 12px; bottom: 12px;
  /* right + width posés en JS d'après la position RÉELLE de la fiche (v0.28.5) */
  overflow-y: auto; z-index: 61;
  background: #fff; border-radius: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.3);
  padding: 14px 16px;
}
#guide-flottant .guide-corps p { font-size: 14.5px; line-height: 1.55; margin-bottom: 10px; }
.guide-flottant-entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: var(--tmdo-teal); }
.guide-corps.sans-bordure { border-left: none; background: transparent; padding: 0; margin: 0; max-width: none; }
.guide-corps {
  position: relative; margin: 8px 0 4px; padding: 10px 12px;
  background: #fdf9f3; border-left: 4px solid var(--tmdo-orange);
  border-radius: 6px; font-size: 13.5px; line-height: 1.45; max-width: 560px;
}
.guide-corps p { margin: 0 0 7px; }
.guide-corps p:last-child { margin-bottom: 0; }

/* v0.28.9 — clic sur « Il manque X/4 » : surlignage de ce qui manque */
.verifs-manquantes { cursor: pointer; }
.verifs-manquantes:hover { filter: brightness(.96); }
@keyframes clignote-manque { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 91, 56, 0); } 50% { box-shadow: 0 0 0 6px rgba(248, 91, 56, .35); } }
.surligne-manque { animation: clignote-manque 1.1s ease-in-out 3; background: #fff3e6 !important; outline: 2px solid var(--tmdo-orange); border-radius: 6px; }

/* v0.33 — banques d'aide de l'entrevue (mises en situation, questions spontanées) */
.banque-aide { background: #F4F8F8; border-left: 4px solid var(--tmdo-teal-mid); border-radius: 4px; padding: 8px 12px; margin: 4px 0 10px; font-size: 13px; }
.banque-aide summary { cursor: pointer; font-weight: 700; color: var(--tmdo-teal-mid); }
.banque-aide ul { margin: 8px 0 4px; padding-left: 20px; }
.banque-aide li { margin: 4px 0; }
.banque-attendu { margin-top: 6px; font-weight: 600; color: var(--tmdo-teal); }

/* v0.34 — suivis post-embauche (Pilotage + fiche) + seuils de tuiles */
.pil-carte.seuil-vert .n { color: #2e7d32; }
.pil-carte.seuil-jaune .n { color: #b26a00; }
.pil-carte.seuil-rouge .n { color: #c62828; }
.suivi-ligne { border: 1px solid var(--tmdo-gray-light); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.suivi-tete { font-size: 14px; margin-bottom: 6px; }
.suivi-jalon { display: inline-block; background: var(--tmdo-teal-mid); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; margin: 0 4px; }
.suivi-badge-incident { display: inline-block; background: #fdecea; color: #c62828; border-radius: 10px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; margin-left: 6px; }
.suivi-controles { display: flex; flex-wrap: wrap; gap: 10px; }
.suivi-controles label { font-size: 12.5px; font-weight: 700; color: var(--tmdo-bluegray-mid); display: flex; flex-direction: column; gap: 3px; }
.suivi-controles select { font-size: 14px; padding: 6px 8px; border: 1px solid var(--tmdo-gray-light); border-radius: 6px; background: #fff; }
.suivi-ligne details { margin-top: 6px; }
.suivi-ligne details input { width: 100%; box-sizing: border-box; font-size: 14px; padding: 6px 8px; border: 1px solid var(--tmdo-gray-light); border-radius: 6px; }
.suivi-liste-fiche { list-style: none; padding: 0; margin: 4px 0; }
.suivi-liste-fiche li { padding: 4px 0; font-size: 13.5px; }

/* v0.36 — mini-évaluation + portrait */
.suivi-eval { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--tmdo-gray-light); }
.suivi-eval input { font-size: 14px; padding: 6px 8px; border: 1px solid var(--tmdo-gray-light); border-radius: 6px; min-width: 170px; }
.portrait-moyennes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.portrait-note { background: #f4f7f7; border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.portrait-note strong { color: var(--tmdo-teal); font-size: 15px; }
.tend { font-size: 12.5px; font-weight: 800; padding: 1px 8px; border-radius: 10px; }
.tend.up { background: #e8f5e9; color: #2e7d32; }
.tend.down { background: #fdecea; color: #c62828; }
.tend.flat { background: #f0f3f4; color: var(--tmdo-bluegray-mid); }

/* v0.37 — notes/tags + à replacer + éval client */
.tags-ligne { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag-pill { display: inline-block; background: var(--tmdo-gray-light); color: var(--tmdo-teal); border-radius: 10px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.replacer-bandeau { background: #fff3ec; border: 1px solid var(--tmdo-orange); border-radius: 8px; padding: 8px 10px; }
.notes-editer input, .notes-editer textarea { font-size: 14px; padding: 6px 8px; border: 1px solid var(--tmdo-gray-light); border-radius: 6px; font-family: inherit; }
.eval-demande { margin-top: 8px; }
.eval-demande input { font-size: 14px; padding: 6px 8px; border: 1px solid var(--tmdo-gray-light); border-radius: 6px; min-width: 150px; }

/* v0.38 — poignée de réordonnancement (Pilotage) */
.pil-grab { cursor: grab; touch-action: none; user-select: none; color: var(--tmdo-bluegray-light); margin-right: 8px; font-size: 15px; }
.pil-grab:active { cursor: grabbing; }
.pil-section.pil-drag { opacity: .65; box-shadow: 0 8px 26px rgba(0,0,0,.18); }

/* v0.38.1 — la passe DESKTOP (source unique) : la fiche respire pour vrai.
   1920px d'écran → ~900px de fiche · 2560px → ~1080px. Mobile inchangé au pixel. */
@media (min-width: 1024px) {
  .fiche { width: min(900px, 62vw); max-width: 62vw; padding: 30px 36px; font-size: 15px; }
  .fiche-entete h2 { font-size: 26px; }
  .fiche-champs { grid-template-columns: 160px 1fr; font-size: 14px; }
}
@media (min-width: 1500px) {
  .fiche { width: min(1080px, 56vw); max-width: 56vw; }
}

/* ---- v0.40 — Système d'icônes TEAM (chantier iconographie, source : team-icons.json) ---- */
:root {
  --icon-default: #779097;
  --icon-hover: #496A71;
  --icon-active: #1B434B;
  --ui-success: #2F7D5A;
  --ui-warning: #E0A82E;
  --ui-error: #B3261E;
}
.ti { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.ti.ok { color: var(--ui-success); }
.ti.warn { color: var(--ui-warning); }
.ti.err { color: var(--ui-error); }
.dot { width: .65em; height: .65em; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--ui-error); }
.dot-yellow { background: var(--ui-warning); }
.dot-gray { background: #DDE3E3; border: 1px solid #A4B6B8; }
.dot-green { background: var(--ui-success); }
