.motif-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #3d3e48;
  background: linear-gradient(110deg, #232027, #1b1d23);
  border-radius: 14px;
  padding: 15px 16px;
  margin: 2px 0 20px;
}
.motif-copy, .motif-actions { display: flex; align-items: center; gap: 12px; }
.motif-copy strong, .motif-copy small { display: block; }
.motif-copy strong { font-size: .95rem; }
.motif-copy small { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.motif-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #4a213b;
  color: var(--pink2);
  font-size: 1.2rem;
}
.motif-actions { gap: 9px; }
.motif-actions button {
  border: 1px solid #41434d;
  border-radius: 9px;
  background: #212228;
  color: #ddd;
  padding: 10px 14px;
}
.motif-actions button:disabled { opacity: .4; cursor: not-allowed; }
.motif-button {
  background: var(--pink) !important;
  color: white !important;
  border-color: var(--pink) !important;
  white-space: nowrap;
}
.motif-gallery { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.motif-gallery:empty { display: none; }
.motif-item { position: relative; width: 58px; height: 58px; }
.motif-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #4a4b54;
  border-radius: 9px;
  background: repeating-conic-gradient(#fff 0 25%, #ddd 0 50%) 50% / 12px 12px;
}
.motif-item button {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #1b1d23;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-size: .75rem;
}
@media (max-width: 580px) {
  .motif-upload { align-items: flex-start; flex-direction: column; }
  .motif-actions { width: 100%; flex-wrap: wrap; }
}
