/* QG+ — Glisser-déposer dans les échanges : zone de dépôt en verre + pièces jointes qui arrivent en douceur (09/10/2026).
   Voir qg-glisser.js. Retour arrière : retirer qg-glisser.css et qg-glisser.js d'index.html. */
#qgg-zone {
  position: fixed; z-index: 2147482000; pointer-events: none; display: grid; place-items: center; padding: 18px; box-sizing: border-box;
  opacity: 0; visibility: hidden;
}
#qgg-zone.qgg-vu { visibility: visible; animation: qgg-entre .32s cubic-bezier(.2, .8, .2, 1) forwards; }
#qgg-zone.qgg-sort { visibility: visible; animation: qgg-sort .26s ease-in forwards; }
#qgg-zone.qgg-sort.qgg-depose { animation: qgg-avale .42s cubic-bezier(.4, 0, .2, 1) forwards; }
#qgg-zone .qgg-cadre {
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font-family: inherit;
}
#qgg-zone[data-theme="light"] .qgg-cadre {
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 2px dashed rgba(10, 132, 102, .55); color: #1c1c1e; box-shadow: 0 30px 80px -30px rgba(7, 95, 77, .35), inset 0 0 0 6px rgba(10, 132, 102, .05);
}
#qgg-zone[data-theme="dark"] .qgg-cadre {
  background: rgba(3, 16, 14, .72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 2px dashed rgba(77, 255, 216, .6); color: #eafff9; box-shadow: 0 0 40px rgba(77, 255, 216, .18), inset 0 0 30px rgba(77, 255, 216, .06);
}
#qgg-zone .qgg-icone {
  width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 6px;
  animation: qgg-flotte 1.6s ease-in-out infinite;
}
#qgg-zone[data-theme="light"] .qgg-icone { background: linear-gradient(135deg, #0a8466, #075f4d); color: #fff; box-shadow: 0 14px 30px -10px rgba(7, 95, 77, .55); }
#qgg-zone[data-theme="dark"] .qgg-icone { background: rgba(77, 255, 216, .14); color: rgb(77, 255, 216); box-shadow: 0 0 26px rgba(77, 255, 216, .35); }
#qgg-zone .qgg-icone svg { width: 34px; height: 34px; }
#qgg-zone strong { font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
#qgg-zone span { font-size: 14px; opacity: .72; }
@keyframes qgg-entre { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes qgg-sort { from { opacity: 1; } to { opacity: 0; } }
@keyframes qgg-avale { 0% { opacity: 1; transform: none; } 35% { opacity: 1; transform: scale(.985); } 100% { opacity: 0; transform: scale(.96) translateY(18px); } }
@keyframes qgg-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Les pièces jointes du message : plusieurs, sur une ou deux lignes, elles arrivent en douceur */
#hermes-signature#hermes-signature #hs-attachment:not(:empty) { display: flex; flex-wrap: wrap; gap: 6px; }
#hermes-signature#hermes-signature #hs-attachment .hs-attachchip { animation: qgg-puce .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes qgg-puce { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #qgg-zone.qgg-vu, #qgg-zone.qgg-sort, #qgg-zone .qgg-icone, #hermes-signature#hermes-signature #hs-attachment .hs-attachchip { animation-duration: .01s; animation-iteration-count: 1; }
  #qgg-zone.qgg-vu { opacity: 1; }
}
