/* team-rh-p1.css — lot P1 ( décisions de Thomas du 30 oct. 2026 ) : 4 phases lisibles, une colonne de cartes chacune,
   « Hors pipeline » à part, pastille du statut détaillé, jauge « Embauche n/8 », étiquette de source.
   Aucun orange ici : l'orange reste l'action principale. Contrastes : texte #1B3C43 ou #536C72 sur blanc ( AA ). */

/* ---- rail des 4 phases : elles se partagent la largeur au bureau ( défilement interne sous 1 100 px ) ---- */
.phases .phase { flex: 1 1 0; min-width: 230px; }
.phase .phase-colonnes { display: flex; min-width: 0; }
.phase .colonne.colonne-phase { flex: 1 1 auto; width: 100%; min-width: 0; max-height: calc(100vh - 210px); }
.colonne-phase .cartes { min-width: 0; }
.carte.carte-phase { min-width: 0; overflow-wrap: anywhere; }
.carte.carte-phase .badges .badge { white-space: normal; }
.phase-entete:focus-visible { outline: 3px solid #D54A2B; outline-offset: 2px; border-radius: 6px; }

/* ---- Hors pipeline : séparé du rail, sous lui, replié par défaut ---- */
.p1-hors { margin: 4px 16px 24px; padding-top: 12px; border-top: 1px dashed var(--t-line, #DDE5E5); }
.p1-hors .phase-entete h2 { color: var(--t-muted, #536C72); }
.p1-hors .colonne.colonne-phase { max-height: none; }
.p1-hors .cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; overflow: visible; }
.p1-hors-note { margin: 6px 6px 0; font-size: 13px; color: var(--t-muted, #536C72); }
.p1-hors.repliee .p1-hors-note { display: none; }

/* ---- carte de la vue Phases : elle s'ouvre au clic ( pas de glisser ici ) ---- */
.carte.carte-phase { cursor: pointer; }
.carte.carte-phase:active { cursor: pointer; }
.carte.carte-phase:focus-visible { outline: 3px solid #D54A2B; outline-offset: 2px; }
.p1-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.p1-tete .nom { min-width: 0; overflow-wrap: anywhere; }
.p1-statut { flex: none; max-width: 52%; font-size: 11px; font-weight: 700; line-height: 1.3; padding: 2px 7px; border-radius: 10px;
  background: #EDF1F1; color: #1B3C43; border: 1px solid #DDE5E5; text-align: center; overflow-wrap: anywhere; }
.p1-statut.stop { background: #FCEEEE; color: #8C1D18; border-color: #F2C9C6; }
.p1-statut.ok { background: #E9F3ED; color: #1F5A3F; border-color: #C9E3D4; }

/* ---- jauge « Embauche n/8 » ---- */
.p1-jauge { margin-top: 8px; font-size: 12px; line-height: 1.4; color: #1B3C43; display: grid; gap: 4px; }
.p1-jauge strong { font-weight: 700; }
.p1-barre { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-width: 160px; }
.p1-seg { height: 6px; border-radius: 2px; background: #fff; border: 1px solid #9EAFB2; }
.p1-seg.fait { background: #276E4E; border-color: #276E4E; }
.p1-seg.verifier { background: #FAF3DF; border-color: #775612; }
.p1-jauge-muette { color: #536C72; display: block; }
.p1-jauge-indispo { display: inline-block; justify-self: start; color: #8C1D18; background: #FCEEEE; border: 1px solid #F2C9C6; border-radius: 6px; padding: 2px 7px; font-weight: 700; cursor: help; }

/* ---- étiquette de source : neutre, compacte ---- */
.badge.p1-source { background: #fff; color: #1B3C43; border: 1px solid #9EAFB2; font-weight: 700; cursor: help; }
.badge.p1-source-facebook_payant { border-style: solid; border-width: 1px 1px 1px 3px; border-left-color: #1B3C43; }

/* ---- téléphone : les phases deviennent des listes ( team-rh.css ) ; rien ne déborde ---- */
@media (max-width: 760px) {
  .phases .phase { min-width: 0; }
  .phase .colonne.colonne-phase { max-height: none; }   /* une seule barre de défilement au téléphone : celle de la page */
  .p1-hors { margin: 0 16px 20px; }
  .p1-hors .cartes { grid-template-columns: 1fr; }
  .p1-statut { max-width: 46%; }
}

/* ---- P1-drag ( 2 nov. 2026 ) : la carte se glisse ; menu des statuts au dépôt dans une phase à plusieurs statuts ---- */
.carte.carte-phase[draggable="true"] { cursor: grab; }
.carte.carte-phase[draggable="true"]:active { cursor: grabbing; }
.phase .colonne.colonne-phase.cible { outline: 2px dashed #1B3C43; outline-offset: -2px; }
.p1-menu-statuts { position: fixed; z-index: 1200; width: min(300px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto;
  background: #fff; color: #1B3C43; border: 1px solid #9EAFB2; border-radius: 10px; box-shadow: 0 12px 32px rgba(23, 59, 67, .25); padding: 12px; }
.p1-menu-titre { font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.p1-menu-statuts ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.p1-menu-choix { width: 100%; min-height: 44px; text-align: left; padding: 8px 12px; border: 1px solid #9EAFB2; border-radius: 8px; background: #fff; color: #1B3C43; font-weight: 700; cursor: pointer; }
.p1-menu-choix:hover:not([aria-disabled]) { background: #EDF1F1; border-color: #1B3C43; }
.p1-menu-choix:focus-visible { outline: 3px solid #D54A2B; outline-offset: 2px; }
.p1-menu-choix[aria-disabled="true"] { background: #F0F4F3; color: #536C72; border-style: dashed; cursor: not-allowed; }
.p1-menu-choix.actuel { border-style: solid; }
.p1-menu-raison { display: block; font-size: 12px; color: #536C72; margin: 2px 4px 0; }
.p1-menu-annuler { min-height: 40px; }
