/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ══ 🔴 LOT BO-5 (5) — LE BANDEAU D'IMPERSONATION ═══════════════════════════
 *
 * ⚠️ LE STRICT NÉCESSAIRE POUR QU'IL SOIT VU, rien de plus : ce lot ne fait
 * aucun travail d'esthétique. Un bandeau qui défile avec la page se perd dès
 * le premier écran ; c'est `fixed` qui en fait un garde-fou.
 *
 * Il ne se rend que pendant une impersonation (`layouts/_bandeau_impersonation`),
 * donc il ne coûte rien au site le reste du temps.
 */
/* 🔴 Lot cto53-m (17) : une hauteur FIXE (`--hauteur-du-bandeau-impersonation`, la feuille de Tailwind), celle dont
   l'en-tête, `<main>` et ce qui suit l'en-tête descendent (`--barres-au-dessus-de-l-entete`) : il ne couvre plus le menu.
   Une seule ligne ; un prénom trop long se coupe, le bouton reste entier. Toujours au-dessus de tout (aucune fenêtre ne
   le floute : il est hors de `.site-content`). */
.bandeau-impersonation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-sizing: border-box;
  height: var(--hauteur-du-bandeau-impersonation, 2.5rem);
  padding: 0 1rem;
  background: #7b2d26;
  color: #fff;
  font-size: 0.875rem;
  white-space: nowrap;
}

.bandeau-impersonation__texte {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bandeau-impersonation__retour { flex-shrink: 0; }

.bandeau-impersonation__retour button {
  background: #fff;
  color: #7b2d26;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font: inherit;
}
