/* Fenêtre « Placer un cours » : champ « Pour qui ? » (T-033). Fichier propre au ticket ; app.css appartient à T-034. */

/* Liste déroulante en surimpression sous le champ : elle ne décale jamais le reste du formulaire. */
.pour-qui-recherche { position: relative; }
.pour-qui-recherche .suggestions-liste {
  position: absolute; top: calc(100% + var(--e-1)); left: 0; right: 0; z-index: 30; margin: 0;
  max-height: 50vh; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  box-shadow: var(--ombre-fenetre); padding: var(--e-1); gap: 0;
}
.pour-qui-recherche .suggestions-liste:not(:has(*)) { display: none; }
.suggestions-liste .suggestion { width: 100%; border-color: transparent; }
.suggestions-liste .suggestion:hover, .suggestions-liste .suggestion:focus-visible { border-color: var(--accent); }
.suggestions-liste .suggestion-eleve { padding-left: var(--e-6, 32px); font-size: var(--t-second, 14px); color: var(--encre-2); }
.suggestions-liste .groupe-suggestions {
  position: sticky; top: calc(-1 * var(--e-1)); margin: 0; padding: var(--e-1) var(--e-3);
  background: var(--surface-2); font-weight: 600; z-index: 1;
}

/* Client choisi : « Qui monte ? » */
.pastille-client fieldset.qui-monte { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.pastille-client fieldset.qui-monte legend { padding: 0; margin-bottom: var(--e-2); font-weight: 600; }
.pastille-client .champ-aide { grid-column: 1 / -1; }

/* Cases à cocher en pastilles : la case native est masquée, comme pour les boutons radio. */
input[type=checkbox].cache { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
input[type=checkbox].cache:checked + .pastille { background: var(--accent-teinte); border-color: var(--accent); color: var(--accent); font-weight: 600; }
input[type=checkbox].cache:focus-visible + .pastille { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segments « Cours | Dépense » en tête du panneau : ne se réduisent pas dans le corps (colonne flex). */
#form-placer .segments { flex: none; align-self: flex-start; margin-bottom: var(--e-4); }
