/* Règle 11 : composant commun, styles locaux des anciens bandeaux supprimés. */
.ef-activity-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 5px 12px;
  margin: 0;
  background: #fff;
  border: 1px solid #eadfca;
  border-radius: 15px;
  flex-wrap: nowrap;
}
.ef-activity-header .ef-activity-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #162c43;
  font: 700 12px/1.25 Lexend, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}/* Règle 18 : le retour vers les activités n'a pas sa place dans
   le plein écran d'édition. Le retour individuel reste disponible.
   À la sortie native (Échap / Réduire), le bouton revient sans réinitialisation. */
.ef-fs-editor:fullscreen > .ef-activity-header:not([data-ef-individual="true"]) .ef-activity-back {
  display: none;
}

.ef-activity-header .ef-activity-arrow {
  box-sizing: border-box;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #d73943;
  border-radius: 10px;
  background: #ef5359;
  color: #111;
  font: 900 26px/1 Arial, sans-serif;
}
.ef-activity-header .ef-activity-arrow svg {width: 21px;height: 21px;display: block;}
.ef-activity-header .ef-activity-back:hover .ef-activity-arrow {background: #df424b;}
.ef-activity-header .ef-activity-back:focus-visible {outline: 3px solid #b17a07;outline-offset: 3px;border-radius: 10px;}
.ef-activity-header .ef-activity-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 67%;
  margin: 0 0 0 auto;
  font: 700 clamp(15px, 1.3vw, 20px)/1.25 Lexend, sans-serif;
  letter-spacing: -.025em;
  color: #18334d;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ef-activity-state[hidden] {display: none!important;}
/* Les contrôles de fichiers sont conservés dans l'éditeur, jamais dans le bandeau. */
.ef-document-actions {display: flex;flex: 0 0 auto;align-items: center;gap: 5px;margin-left: auto;min-width: 0;}
.ef-document-actions input[hidden] {display: none!important;}
/* La grille conserve sa barre fonctionnelle propre, distincte du bandeau fixé. */
.gr-activity-nav .gr-document-actions {margin-left: auto;flex-wrap: wrap;}
body.el-memory-immersive :is(#view-memory,#view-pinces,#view-domino,#view-tri,#view-chemins,#view-denombrer,#view-suites,#view-manque,#view-grille) .memory-setup-heading.ef-activity-header {display: flex;}
@media(max-width: 560px) {
  .ef-activity-header {min-height: 50px;gap: 6px;padding: 4px 7px;}
  .ef-activity-header .ef-activity-back {gap: 6px;font-size: 10px;}
  .ef-activity-header .ef-activity-arrow {width: 35px;height: 35px;flex-basis: 35px;font-size: 23px;}
  .ef-activity-header .ef-activity-title {font-size: 13px;max-width: 55%;}
  .ef-document-actions {gap: 3px;}
  .ef-document-actions .pin-icon,.ef-document-actions .mq-icon,.ef-document-actions .chg-icon,.ef-document-actions .den-icon,.ef-document-actions .sui-icon,.ef-document-actions .tri-icon {width: 29px;height: 30px;min-height: 30px;}
}
@media print {.ef-activity-header {display: none!important;}}
