/* Zone de dépôt des factures (accueil et assistant d'ajout de bateau). Classes « invdrop ». */
.invdrop { display: flex; flex-direction: column; gap: var(--space-3); }
.invdrop__zone {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-5) var(--space-4); text-align: center;
  border: 1.5px dashed #9fb4c6; border-radius: var(--radius-md); background: var(--sea-100, #eef5fa);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.invdrop__zone.is-over { border-color: var(--sea); border-style: solid; background: #e1eef7; }
.invdrop__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sea); box-shadow: 0 0 0 1px rgb(15 42 68 / 0.06), 0 2px 6px -2px rgb(15 42 68 / 0.18); transition: transform var(--dur-base) var(--ease-out); }
.invdrop__zone.is-over .invdrop__icon { transform: translateY(-3px); }
.invdrop__icon .icon { width: 1.375rem; height: 1.375rem; }
.invdrop__title { margin: 0; font-weight: 600; color: var(--navy); text-wrap: balance; }
.invdrop__pick { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.invdrop__or { color: var(--muted); font-size: 0.9375rem; }
.invdrop__browse { min-height: 44px; cursor: pointer; background: #fff; }
.invdrop input:focus-visible ~ .invdrop__zone .invdrop__browse { outline: 3px solid var(--sea); outline-offset: 2px; }
.invdrop__hint { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.invdrop__privacy { margin: 0; font-size: 0.8125rem; color: var(--muted); text-wrap: pretty; }
.invdrop__error { margin: 0; }
.invdrop--compact .invdrop__zone { padding: var(--space-4); }

.invdrop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.invdrop__list:empty { display: none; }
.invdrop__file {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 0 0 1px rgb(15 42 68 / 0.08);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
@starting-style { .invdrop__file { opacity: 0; transform: translateY(4px); } }
.invdrop__state { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.invdrop__state .icon { width: 1rem; height: 1rem; }
.invdrop__file--ok .invdrop__state { background: var(--success-bg); color: var(--success); }
.invdrop__file--bad .invdrop__state { background: var(--danger-bg, #fdecec); color: var(--danger); }
.invdrop__file--warn .invdrop__state { background: var(--warning-bg); color: var(--warning); }
.invdrop__spinner { width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 2px solid #c9d6e2; border-top-color: var(--sea); animation: invdrop-spin 0.6s linear infinite; }
@keyframes invdrop-spin { to { transform: rotate(360deg); } }
.invdrop__name { flex: 1; min-width: 0; display: grid; gap: 0.125rem; text-align: left; }
.invdrop__name strong { font-size: 0.9375rem; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invdrop__name span { font-size: 0.8125rem; color: var(--muted); }
.invdrop__file--bad .invdrop__name span { color: var(--danger); }
.invdrop__remove { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -0.25rem; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out); }
.invdrop__remove .icon { width: 1.125rem; height: 1.125rem; }
.invdrop__remove:active { transform: scale(0.96); }
.invdrop__remove:focus-visible { outline: 3px solid var(--sea); outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .invdrop__remove:hover { background: var(--sand); color: var(--navy); } }
@media (prefers-reduced-motion: reduce) {
  .invdrop__file, .invdrop__icon, .invdrop__remove { transition: none; }
  .invdrop__spinner { animation-duration: 1.6s; }
}
