/* Ali Gator · v227 · Atelier : haut de page compact et arrondi, bandeau manuel sur une ligne discrète.
   Retour arrière : retirer atelier-flux-v227.css et atelier-flux-v227.js d’index.html. */

/* Tuile du haut (fil « Retour au lot ») : mêmes coins arrondis que le panneau */
html:root body main.editor-main > nav.batch-workshop-path{border-top-left-radius:24px;border-top-right-radius:24px}
html:root body main.editor-main > nav.batch-workshop-path + .document-heading{border-top-left-radius:0;border-top-right-radius:0}

/* Bandeau « Vous modifiez ce PDF manuellement » : une seule ligne, discrète */
html:root body .manual-lot-banner{flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;min-height:0!important;
  padding:6px 12px 6px 20px!important;border-bottom:1px solid #dfeccf!important;background:linear-gradient(90deg,#f5fbec,#fbfdf7)!important;
  container-type:inline-size;animation:agfx-in .32s cubic-bezier(.2,.8,.2,1) both}
/* L’aide n’apparaît que si elle tient en entier : jamais de phrase coupée */
@container (max-width:1180px){html:root body .manual-lot-banner > div:first-child > p{display:none}}
html:root body .manual-lot-banner > div:first-child{display:flex!important;align-items:center;gap:8px;flex:1 1 auto!important;min-width:0!important;
  overflow:hidden;white-space:nowrap}
html:root body .manual-lot-banner > div:first-child > strong{flex:none;display:inline-flex;align-items:center;gap:8px;font-size:12.5px!important;
  font-weight:650;color:#24533a}
html:root body .manual-lot-banner > div:first-child > strong::before{content:"";width:7px;height:7px;border-radius:50%;background:#78b043;
  box-shadow:0 0 0 3px rgba(120,176,67,.18);animation:agfx-pulse 2.4s ease-in-out infinite}
html:root body .manual-lot-banner > div:first-child > p{flex:1 1 auto;min-width:0;margin:0!important;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:12px!important;line-height:1.3!important;color:#6b8170}
html:root body .manual-lot-banner > .manual-lot-actions{flex:none!important;flex-wrap:nowrap!important;width:auto!important;gap:4px!important}
html:root body .manual-lot-banner > .manual-lot-actions > .button{height:32px;min-height:32px!important;padding:0 14px!important;border-radius:10px!important;
  font-size:12.5px!important;white-space:nowrap!important;box-shadow:0 2px 6px rgba(32,73,45,.16)!important;
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
html:root body .manual-lot-banner > .manual-lot-actions > .button:hover:enabled{transform:translateY(-1px);filter:brightness(1.05)}
html:root body .manual-lot-banner > .manual-lot-actions > .text-button{height:32px;padding:0 8px!important;font-size:12px!important;white-space:nowrap!important;
  color:#6b8170!important;border-radius:9px;transition:background-color .15s ease,color .15s ease}
html:root body .manual-lot-banner > .manual-lot-actions > .text-button:hover:enabled{background:#eef5e6;color:#24533a!important}
@media (max-width:700px){
  html:root body .manual-lot-banner{padding:6px 10px 6px 14px!important}
  html:root body .manual-lot-banner > div:first-child > p{display:none}
  html:root body .manual-lot-banner > .manual-lot-actions > .text-button{display:none}
}

/* Message « l’IA continue / a fini » */
html:root body > .agfx-toast{position:fixed;left:50%;bottom:22px;z-index:80;display:flex;align-items:center;gap:10px;max-width:min(560px,calc(100vw - 24px));
  padding:9px 8px 9px 16px;border:1px solid #d8e6d2;border-radius:16px;background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 16px 40px -14px rgba(23,68,47,.32),0 2px 8px rgba(23,68,47,.08);
  font-family:"Hellix",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#26432f;
  opacity:0;transform:translate(-50%,10px) scale(.98);transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1)}
html:root body > .agfx-toast.is-in{opacity:1;transform:translate(-50%,0)}
html:root body > .agfx-toast > strong{flex:none;font-size:13px;font-weight:700;white-space:nowrap}
html:root body > .agfx-toast > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:#5f7864}
html:root body > .agfx-toast > .agfx-go{flex:none;height:30px;padding:0 13px;border:1px solid #255b3b;border-radius:10px;
  background:linear-gradient(150deg,#357852,#17442f);color:#f2ffe0;font:inherit;font-size:12.5px;font-weight:650;cursor:pointer;
  transition:transform .15s ease,filter .15s ease}
html:root body > .agfx-toast > .agfx-go:hover{transform:translateY(-1px);filter:brightness(1.06)}
html:root body > .agfx-toast > .agfx-x{flex:none;width:26px;height:26px;padding:0;border:0;border-radius:8px;background:transparent;color:#7d8e7d;
  font-size:18px;line-height:26px;cursor:pointer}
html:root body > .agfx-toast > .agfx-x:hover{background:#f1f5ee}

@keyframes agfx-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes agfx-pulse{50%{box-shadow:0 0 0 5px rgba(120,176,67,.08)}}
@media (prefers-reduced-motion:reduce){
  html:root body :is(.manual-lot-banner,.manual-lot-banner strong::before,.agfx-toast){animation:none!important;transition-duration:.01s!important}
}
