/* ==========================================================================
   team-rh-v079.css — TEAM RH v0.79 ( 11 oct. 2026 )
   Lot R-6 de l'audit du 10 oct. ( D-R28, D-R29, D-R33, D-R35, D-R30 historique )
   et décisions de Thomas : R-b, R-f, R-g ( R-h est dans reserve-app.js ).
   Chargé en dernier. Aucune étape, carte, statut ni déplacement du pipeline ne change.
   ========================================================================== */

/* ---- R-b : « + Nouveau candidat » devient teal ; l'orange va au geste principal de l'écran ---- */
.entete #btn-nouveau, .entete #btn-nouveau:hover {
  background: #1B434B; background-image: none; border-color: #1B434B; color: #fff;
}
.entete #btn-nouveau:hover { background: #173B43; border-color: #173B43; }
@media (min-width: 1100px) {
  /* dans la barre latérale foncée : bouton blanc, texte teal ( 10,4:1 ) */
  .entete #btn-nouveau, .entete #btn-nouveau:hover { background: #fff; border-color: #fff; color: #1B434B; }
  .entete #btn-nouveau:hover { background: #E8F1F2; border-color: #E8F1F2; }
}

/* ---- R-f : blanc sur orange = 19 px gras minimum ( 3,21:1, AA grand texte ) ---- */
.btn-cta, .btn-cta.btn-cta-mini, .bassin-carte #bassin-importer { font-size: 19px !important; font-weight: 700 !important; }
.entete #btn-nouveau { font-size: 17px !important; } /* teal ( 9,9:1 ) : la règle des 19 px ne s'applique pas */
/* un seul orange par écran : les petits boutons orange passent au teal plein */
.mini.orange, .mini.orange:hover {
  background: #1B434B; background-image: none; border-color: #1B434B; color: #fff; text-shadow: none;
}
.mini.orange:hover { background: #173B43; border-color: #173B43; filter: none; }

/* ---- R-g : les filtres ( pastilles, métier, secteur ) se replient derrière « Filtres » au téléphone ---- */
#btn-filtres { display: none; }
@media (min-width: 601px) {
  .recherche-filtres { display: contents; } /* au bureau, rien ne bouge */
}
@media (max-width: 600px) {
  .outils { gap: 8px; }
  .outils .espaces, .outils .commutateur-vue { flex: 1 1 100%; }
  /* la recherche et « Filtres » sur la même rangée ( styles.css:1553 la mettait pleine largeur dans la Réserve, Ma journée et le Bassin ) */
  .outils #recherche, body:has(.liste.reserve,.liste.journee,.liste.bassin) .outils #recherche { flex: 1 1 0 !important; min-width: 0; width: auto !important; min-height: 48px; font-size: 16px; }
  #btn-filtres:not(.hidden) { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 48px; white-space: nowrap; }
  #btn-filtres .filtres-compte { font-weight: 700; }
  .recherche-filtres { display: none; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .outils.filtres-ouverts .recherche-filtres { display: flex; }
  .recherche-filtres .chips { flex: 1 1 100%; flex-wrap: wrap; }
  .recherche-filtres .chip { min-height: 44px; }
  .recherche-filtres select { flex: 1 1 140px; max-width: none; min-height: 48px; font-size: 16px; }
}

/* ---- D-R28 : en-tête et onglets au téléphone — aucun mot coupé, quel que soit le rôle ---- */
@media (max-width: 600px) {
  .entete { flex-wrap: wrap; gap: 10px; height: auto; }
  .entete-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .entete #btn-nouveau { flex: 1 1 auto; min-width: 0; white-space: nowrap; min-height: 48px; padding: 8px 12px; }
  .entete .btn-ghost { flex: 0 0 auto; white-space: nowrap; min-height: 48px; }
  .entete #btn-monday { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 8px 12px; }
  .entete #btn-monday .entete-lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* onglets d'espace et de vue : une seule rangée qui défile dans son cadre */
  .outils .espaces, .outils .commutateur-vue { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .outils .espaces button, .outils .commutateur-vue button { flex: 0 0 auto; white-space: nowrap; }
}

/* ---- D-R33 : pendant une recherche, une ligne de résultats ; les phases vides disparaissent ---- */
.recherche-resultats {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  margin: 12px 16px 0; padding: 10px 14px; background: #fff; border: 1px solid #DDE5E5; border-radius: 10px;
  color: #1B3C43; font-size: 15px;
}
.recherche-resultats .mini { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 899px) {
  /* au téléphone et à la tablette seulement : au bureau, les phases et les colonnes vides restent des cibles de glisser-déposer
     ( r2, A79-02 : la phase vide était masquée à toutes les largeurs et emportait ses colonnes ) */
  #vue.recherche-active .phase-vide,
  #vue.recherche-active .colonne-vide,
  #vue.recherche-active .indice-phases { display: none; }
}

/* ---- D-R29 : état vide de la Réserve avec une sortie ---- */
.banque-vide [data-effacer-recherche] { margin-left: 8px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }

/* ---- R-h / D-R30 : liste CCQ incomplète, historique en cartes au téléphone ---- */
.bassin-incomplete { display: block; margin: 10px 0; font-size: 15px; line-height: 1.45; color: #775612; background: #FAF3DF; border: 1px solid #EBDDB3; border-left: 4px solid #775612; }
.bassin-incomplete .ti { vertical-align: -3px; }
@media (max-width: 600px) {
  .bassin-histo .rangee { display: flex; flex-wrap: wrap; gap: 2px 12px; }
  .bassin-histo .rangee > span { white-space: normal; }
  .bassin-histo .rangee .nom { flex-basis: 100%; }
  .bassin-histo .rangee .dim { display: inline; }
}

/* ---- D-R35 : profil dispatch et assistance SEL au téléphone ---- */
@media (max-width: 600px) {
  .profil-boutons { flex-direction: column; align-items: stretch; }
  .profil-boutons > button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: normal; margin: 0; }
  .ligne-copie .lc-libelle { flex-basis: 100%; min-width: 0; }
  .ligne-copie .lc-valeur { flex: 1 1 8em; min-width: 8em; word-break: normal; overflow-wrap: anywhere; }
  .ligne-copie .lc-valeur.sensible-masque { white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
  .ligne-copie .mini, .ligne-copie .sensible-afficher { flex: 0 0 auto; min-height: 44px; }
}
